Unittest runner for Heat.
- To run all tests
- python heat/testing/runner.py
- To run a single test module:
- python heat/testing/runner.py test_resources
- To run a single test:
- python heat/testing/runner.py
- test_resources:ResourceTestCase.test_resource_from_template
-
class heat.testing.runner.HeatTestResult(*args, **kw)[source]
Bases: nose.result.TextTestResult
-
addError(test, err)[source]
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)[source]
-
addSuccess(test)[source]
-
getDescription(test)[source]
-
startTest(test)[source]
-
class heat.testing.runner.HeatTestRunner(*args, **kwargs)[source]
Bases: nose.core.TextTestRunner
-
run(test)[source]
-
heat.testing.runner.get_elapsed_time_color(elapsed_time)[source]
-
heat.testing.runner.run()[source]