nelson.unittest.select
Filter a discovered test suite.
📝Syntax
selected = nelson.unittest.select(suite, Name, Value)
📥Input Arguments
Parameter Description
suite TestSuite returned by nelson.unittest.discover.
Name, Value selection options: Name, Module, File, Kind, Tags, ExcludeTags, Match, and Exclude.
📤Output Arguments
Parameter Description
selected filtered TestSuite preserving filtered-count metadata.
📄Description

nelson.unittest.select applies selection filters without executing tests.

Kind accepts test, bug, bench, all_tests, and all.

💡Examples
suite = nelson.unittest.select(suite, 'Tags', {'fast'}, 'ExcludeTags', {'gui'});
🔗See Also
nelson.unittest.discovernelson.unittest.plan
Edit this page on GitHub