selected = nelson.unittest.select(suite, Name, Value)
| Parameter | Description |
|---|---|
| suite | TestSuite returned by nelson.unittest.discover. |
| Name, Value | selection options: Name, Module, File, Kind, Tags, ExcludeTags, Match, and Exclude. |
| Parameter | Description |
|---|---|
| selected | filtered TestSuite preserving filtered-count metadata. |
nelson.unittest.select applies selection filters without executing tests.
Kind accepts test, bug, bench, all_tests, and all.
suite = nelson.unittest.select(suite, 'Tags', {'fast'}, 'ExcludeTags', {'gui'});