Using Test IDs¶
Allow easy test selection with test ids.
Assigns (and, in verbose mode, prints) a sequential test id for each test executed. Ids can be fed back in as test names, and this plugin will translate them back to full test names. Saves typing!
This plugin implements reportStartTest()
,
loadTestsFromName()
, loadTestsFromNames()
and
stopTest()
.
Configuration [testid]¶
-
always-on
¶ Default: False Type: boolean
-
id-file
¶ Default: .noseids Type: str
Sample configuration¶
The default configuration is equivalent to including the following in a unittest.cfg
file.
[testid]
always-on = False
id-file = .noseids
Plugin class reference: TestId¶
-
class
nose2.plugins.testid.
TestId
[source]¶ Allow easy test select with ids