Previous topic

The nova.test Module

Next topic

The nova.utils Module

This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Nova 2011.2 docs or all OpenStack docs too.

The nova.testing.runner Module

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()