Did I find the right examples for you? yes no

All Samples(3351)  |  Call(2801)  |  Derive(280)  |  Import(270)
A test runner class that displays results in textual form.

It prints out the names of tests as they are run, errors as they
occur, and a summary of the results at the end of the test run.

src/b/a/banana-HEAD/examples/calculator/tests.py   banana(Download)
#!/usr/bin/env python
 
from unittest import TestCase, TextTestRunner, defaultTestLoader as loader
from banana import register_module 
import scenarios
if __name__ == '__main__':
    suite = loader.loadTestsFromTestCase(CalculatorTestCase)
    runner = TextTestRunner(verbosity=2)
    runner.run(suite)

src/m/o/modern-python-example-HEAD/lib/python2.7/site-packages/Crypto/SelfTest/__init__.py   modern-python-example(Download)
    if stream is None:
        kwargs['stream'] = StringIO()
    runner = unittest.TextTestRunner(verbosity=verbosity, **kwargs)
    result = runner.run(suite)
    if not result.wasSuccessful():

src/m/y/myhdl-0.8/example/rs232/test_rs232.py   myhdl(Download)
 
if __name__ == "__main__":
    testRunner = unittest.TextTestRunner(verbosity=2)
    unittest.main(testRunner=testRunner)
 

src/d/j/django-mumblr-HEAD/example/testrunner.py   django-mumblr(Download)
    suite = reorder_suite(suite, (TestCase,))
 
    runner = unittest.TextTestRunner(verbosity=verbosity)
    result = runner.run(suite)
 

src/s/h/should_dsl-2.1.2/run_examples.py   should_dsl(Download)
def run(docs):
    suite = test_suite(docs)
    runner = unittest.TextTestRunner(verbosity=2)
    result = runner.run(suite)
    sys.exit(int(bool(result.failures or result.errors)))

src/s/h/should-dsl-HEAD/run_examples.py   should-dsl(Download)
def run(docs):
    suite = test_suite(docs)
    runner = unittest.TextTestRunner(verbosity=2)
    result = runner.run(suite)
    sys.exit(int(bool(result.failures or result.errors)))

src/h/o/hospital-0.7/hospital/cli.py   hospital(Download)
    def default_runner(self, verbosity=1, failfast=False,
                       result_class=unittest.TextTestResult,
                       stream=sys.stderr):
        return unittest.TextTestRunner(
            verbosity=verbosity,

src/h/o/hospital-HEAD/hospital/cli.py   hospital(Download)
    def default_runner(self, verbosity=1, failfast=False,
                       result_class=unittest.TextTestResult,
                       stream=sys.stderr):
        return unittest.TextTestRunner(
            verbosity=verbosity,

src/p/i/PipelineConstructionSet-HEAD/python/common/diagnostic/pydevDebug/runfiles.py   PipelineConstructionSet(Download)
 
        sys.stdout.write('\n')
        runner = unittest.TextTestRunner(stream=sys.stdout, descriptions=1, verbosity=verbosity)
        runner.run(unittest.TestSuite(all_tests))
        return

src/p/y/pyvttbl-0.5.2.2/pyvttbl/tests/test_stats_ttest_1sample.py   pyvttbl(Download)
if __name__ == "__main__":
    # run tests
    runner = unittest.TextTestRunner()
    runner.run(suite())
 

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next