-
Notifications
You must be signed in to change notification settings - Fork 218
filter test subsuites on method name #1828
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
easybuild/tools/testfilter.py
Outdated
|
|
||
| return loaded_suite | ||
|
|
||
| def filter_tests(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add a docstring
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make this function accept a list of strings as an argument, rather than grabbing sys.argv here
easybuild/tools/testfilter.py
Outdated
| def loadTestsFromTestCase(self, testCaseClass, filters): | ||
| """Return a suite of all tests cases contained in testCaseClass.""" | ||
|
|
||
| if issubclass(testCaseClass, unittest.TestSuite): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why did you add this check?
move TestLoaderFiltered to test.framework.utilities, print informative message on test filtering
|
@Caylo please add a subsection to http://easybuild.readthedocs.io/en/latest/Unit-tests.html#running explaining how you can filter tests (and include an example, using |
|
docs updated via easybuilders/easybuild#234, good to go, thanks @Caylo! |
No description provided.