-k option for tester should accept more than one keyword #5228
Labels
Enhancement
imported
Testing
Related to the test runner. Do not use for test failures unless it relates to the test runner itself
The -k option to the test runs only tests whose function names match the given keyword. It would be nice if you could supply it with more than one word, allowing you to run only a subset of tests from a file in one command. You can see from the first two commands below that it works fine for one word, but if more than one word is given, only the first one is used and subsequent ones are ignored.
What I think is happening is that further arguments are accepted as further files.
But I think it would be more useful to make -k greedy so that it can allow more than one option (but not so greedy that it doesn't allow options like -v after it, though). Is the Python option parser advanced enough to let us do this?
Original issue for #5228: http://code.google.com/p/sympy/issues/detail?id=2129
Original author: https://code.google.com/u/asmeurer@gmail.com/
Original owner: https://code.google.com/u/asmeurer@gmail.com/
The text was updated successfully, but these errors were encountered: