[Feature request] Ability to just run the last changed test file
See original GitHub issueJust had a case where I was working on file foo.js
and foo.spec.js
. Foo is used in a bunch of places, so upon changing it Jest correctly figures out that it has 10 spec files that it should run. This is great most of the time, but it means that I have to wait longer to know if foo.spec.js
has passed or not. An option to turn on a “single file” mode where it only runs the last changed spec file on each change would be quite useful.
I’m quite happy to attempt some work on this if you think it’s a reasonable addition 😃
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:10 (6 by maintainers)
Top Results From Across the Web
How to Run Changed Specs First in a Pull Request - Cypress
If you work on just one feature and open a pull request with small code changes and corresponding updates to 1 Cypress spec...
Read more >Run jest for unit tests of modified files only | by SunCommander
In this article, you will learn how to run Jest for modified files only in a Pull Request. This can be done using...
Read more >Run New and Failing Tests on File Change with Pytest
You may create a merge request only to have the feature branch fail the unit test CI ... Press o to only run...
Read more >How can I get cargo to recompile changed files automatically?
For now, I am manually running cargo build or cargo run every time I want to type check my code. I would prefer...
Read more >Run jobs only/except when there are changes for a given path ...
Feature Request : Only initiate CI build if certain files changed ... @ecbrodie Does this check all commits, back to last build/pipeline run?...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve been having a think about this: I’d like the ability to toggle on a single file mode on the watcher - perhaps this could be an action button in the top right (https://github.com/orta/vscode-react-native-storybooks/issues/26), which closes the current watcher and a version of the watcher that includes a suffix of the filepath.
after 3 years, we finally added this feature… Please feel free to give v4.0.0-alpha.5 a try and let us know if it works for you.