Map exceptions to test outcomes.
This plugin implements setTestOutcome() to enable simple mapping of exception classes to existing test outcomes.
By setting a list of exception classes in a nose2 config file, you can configure exceptions that would otherwise be treated as test errors, to be treated as failures or skips instead:
[outcomes]
always-on = True
treat-as-fail = NotImplementedError
treat-as-skip = TodoError
IOError
| Default: | False |
|---|---|
| Type: | boolean |
| Default: | [] |
|---|---|
| Type: | list |
| Default: | [] |
|---|---|
| Type: | list |
The default configuration is equivalent to including the following in a unittest.cfg file.
[outcomes]
always-on = False
treat-as-fail =
treat-as-skip =