-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
Support multiple --filter-test-case/--filter-test-list flags #448
Comments
Hello, @pbiggar. May you please provide a repository with the code and perhaps the expected output? |
I don't have a particular implementation in mind, but one way would be to allow multiple So for example, with the darklang codebase I want to run:
which should match tests like:
but not tests that don't have both "line5" in the test name and "float" in the name of a test list. Another useful way to approach this would be to allow filtering on "fully-qualified" test names such as "float.line5" or "All.*.line5" |
There's also prior art for nunit/mstest/etc to accept a small DSL for test case selection in the 'filter' parameter. There are docs on this here: https://learn.microsoft.com/en-us/dotnet/core/testing/selective-unit-tests?pivots=mstest |
YoloDev added support for The docs are a bit sparse, but filters are in this general shape |
I have found it challenging to isolate individual tests. For example, it's hard to isolate A.B.C.D.e when there are test cases also named e and test lists also named A, B, C, D or e.
If I could filter on the entire test name, or add multiple filters (which would all need to be true), I'd have really powerful ability to run just one test.
I've run into this problem I would say hundreds of times over the last year or two.
The text was updated successfully, but these errors were encountered: