Exemplo n.º 1
0
Arquivo: make.py Projeto: Lx37/vispy
 def test(self, arg):
     """ Run tests:
             * full - run all tests
             * unit - run tests (also for each backend)
             * any backend name (e.g. pyside, pyqt4, etc.) -
               run tests for the given backend
             * nobackend - run tests that do not require a backend
             * extra - run extra tests (line endings and style)
             * lineendings - test line ending consistency
             * flake - flake style testing (PEP8 and more)
             * examples - run all examples
             * examples [examples paths] - run given examples
     """
     if not arg:
         return self.help('test')
     from vispy import test
     try:
         args = arg.split(' ')
         test(args[0], ' '.join(args[1:]))
     except Exception as err:
         print(err)
         if not isinstance(err, RuntimeError):
             type_, value, tb = sys.exc_info()
             traceback.print_exception(type, value, tb)
         raise SystemExit(1)
Exemplo n.º 2
0
 def test(self, arg):
     """ Run tests:
             * full - run all tests
             * unit - run tests (also for each backend)
             * any backend name (e.g. pyside2, pyside, pyqt4, etc.) -
               run tests for the given backend
             * nobackend - run tests that do not require a backend
             * extra - run extra tests (line endings and style)
             * lineendings - test line ending consistency
             * flake - flake style testing (PEP8 and more)
             * docs - test docstring parameters for correctness
             * examples - run all examples
             * examples [examples paths] - run given examples
     """
     # Note: By default, "python make full" *will* produce coverage data,
     # whereas vispy.test('full') will not. This is because users won't
     # really care about coveraged, but developers will.
     if not arg:
         return self.help('test')
     from vispy import test
     try:
         args = arg.split(' ')
         test(args[0], ' '.join(args[1:]), coverage=True)
     except Exception as err:
         print(err)
         if not isinstance(err, RuntimeError):
             type_, value, tb = sys.exc_info()
             traceback.print_exception(type, value, tb)
         raise SystemExit(1)
Exemplo n.º 3
0
 def test(self, arg):
     """ Run tests:
             * full - run all tests
             * unit - run tests (also for each backend)
             * any backend name (e.g. pyside2, pyside, pyqt4, etc.) -
               run tests for the given backend
             * nobackend - run tests that do not require a backend
             * extra - run extra tests (line endings and style)
             * lineendings - test line ending consistency
             * flake - flake style testing (PEP8 and more)
             * docs - test docstring parameters for correctness
             * examples - run all examples
             * examples [examples paths] - run given examples
     """
     # Note: By default, "python make full" *will* produce coverage data,
     # whereas vispy.test('full') will not. This is because users won't
     # really care about coveraged, but developers will.
     if not arg:
         return self.help('test')
     from vispy import test
     try:
         args = arg.split(' ')
         test(args[0], ' '.join(args[1:]), coverage=True)
     except Exception as err:
         print(err)
         if not isinstance(err, RuntimeError):
             type_, value, tb = sys.exc_info()
             traceback.print_exception(type, value, tb)
         raise SystemExit(1)
Exemplo n.º 4
0
 def test(self, arg):
     """ Run tests:
             * full - run all tests
             * unit - run tests (also for each backend)
             * any backend name (e.g. pyside, pyqt4, etc.) -
               run tests for the given backend
             * nobackend - run tests that do not require a backend
             * extra - run extra tests (line endings and style)
             * lineendings - test line ending consistency
             * flake - flake style testing (PEP8 and more)
             * examples - run all examples
             * examples [examples paths] - run given examples
     """
     if not arg:
         return self.help('test')
     from vispy import test
     try:
         args = arg.split(' ')
         test(args[0], ' '.join(args[1:]))
     except Exception as err:
         print(err)
         if not isinstance(err, RuntimeError):
             type_, value, tb = sys.exc_info()
             traceback.print_exception(type, value, tb)
         raise SystemExit(1)
Exemplo n.º 5
0
def vispy_tests():
    """
    Run vispy test's to make sure visualization backend is working well - is time consuming
    :return:
    """
    import vispy
    vispy.test()
Exemplo n.º 6
0
 def test(self, arg):
     """ Run tests:
             * full - run all tests
             * nose - run nose tests (also for each backend)
             * any backend name (e.g. pyside, pyqt4, glut, sdl2, etc.) - 
               run tests for the given backend
             * nobackend - run tests that do not require a backend
             * extra - run extra tests (line endings and style)
             * lineendings - test line ending consistency
             * flake - flake style testing (PEP8 and more)
     """
     if not arg:
         return self.help('test')
     from vispy import test
     try:
         test(*(arg.split()))
     except Exception:
         raise SystemExit(1)
Exemplo n.º 7
0
Arquivo: make.py Projeto: gbaty/vispy
 def test(self, arg):
     """ Run tests:
             * full - run all tests
             * nose - run nose tests (also for each backend)
             * any backend name (e.g. pyside, pyqt4, glut, sdl2, etc.) -
               run tests for the given backend
             * nobackend - run tests that do not require a backend
             * extra - run extra tests (line endings and style)
             * lineendings - test line ending consistency
             * flake - flake style testing (PEP8 and more)
     """
     if not arg:
         return self.help('test')
     from vispy import test
     try:
         test(*(arg.split()))
     except Exception as err:
         print(err)
         if not isinstance(err, RuntimeError):
             type_, value, tb = sys.exc_info()
             traceback.print_exception(type, value, tb)
         raise SystemExit(1)