Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The proposed feature is the ability to append @tags to the end of single tests and then to leverage these tags to filter tests in a more powerful way from the command line.
Example:
$ expresso --tags slow
runs only the first test$ expresso -T fast
runs only the second test$ expresso -T "slow || fast"
runs both tests and demonstrates the use of conditional tag statements$ expresso -T "fast && simple"
runs the second test$ expresso -T "slow && fast"
runs none of the testsThis is generally useful to label slow tests and only partition tests by functionality (not by both functionality and speed, which I had to do in a current project).
This is also useful if one test is failing, and you only want to run that single test without commenting out all the other tests. In this case, you could just tag the target test with @single and run expresso with
-T single
.In general, I imagine people would find other uses for this, and I think it's useful enough that I'd love to see it make its way into master.
Tests are included.
--Brian