Previous topic

The cinder.test Module

Next topic

The cinder.tests.api.openstack.common Module

This Page

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

The cinder.testing.runner Module

Unittest runner for Cinder.

To run all tests
python cinder/testing/runner.py
To run a single test module:

python cinder/testing/runner.py test_compute

or

python cinder/testing/runner.py api.test_wsgi

To run a single test:
python cinder/testing/runner.py
test_compute:ComputeTestCase.test_run_terminate
class CinderTestResult(*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 CinderTestRunner(*args, **kwargs)

Bases: nose.core.TextTestRunner

run(test)
get_elapsed_time_color(elapsed_time)
run()