-
-
Notifications
You must be signed in to change notification settings - Fork 179
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
Feature request: focus on tests #898
Comments
A basic version is already supported for That could be smarter of course. PR welcome. |
@thheller I built this node test runner at work which supports the same test selection options as https://github.com/cognitect-labs/test-runner#invoke-with-clojure--m-clojuremain. Would you like a PR to |
Can you write this as a standalone ns that doesn't use |
Great that you're interested! Sure. I'd just name it
The Is there a place I could document usage of the options? We're just starting to use this at work. My plan is to use the runner a week or two before creating a shadow-cljs PR so I can squash any bugs quickly |
Would it be possible for the test runners to allow focusing on single tests?
What I have in mind is similar to what lein-test-refresh does: https://github.com/jakemcc/lein-test-refresh#built-in-test-narrowing-test-selector. You mark one or more tests with a metadata flag, and then only those get executed.
I think that it should be possible to build this into https://github.com/thheller/shadow-cljs/blob/8169e663c0338ab01b31726b0cfcd7005563c581/src/main/shadow/test/env.clj, but I think it should be activated by a parameter so that you don't accidentally forget a focus mark and disable most tests of an automatic pipeline.
The text was updated successfully, but these errors were encountered: