Unittest runner for Nova.
- To run all tests
- python nova/testing/runner.py
- To run a single test module:
python nova/testing/runner.py test_compute
or
python nova/testing/runner.py api.test_wsgi
- To run a single test:
- python nova/testing/runner.py
- test_compute:ComputeTestCase.test_run_terminate
-
class NovaTestResult(*args, **kw)
Bases: nose.result.TextTestResult
-
addError(test, err)
Overrides normal addError to add support for
errorClasses. If the exception is a registered class, the
error will be added to the list for that class, not errors.
-
addFailure(test, err)
-
addSuccess(test)
-
getDescription(test)
-
startTest(test)
-
class NovaTestRunner(*args, **kwargs)
Bases: nose.core.TextTestRunner
-
run(test)
-
get_elapsed_time_color(elapsed_time)
-
run()