question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature request] Ability to just run the last changed test file

See original GitHub issue

Just 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:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ortacommented, Oct 4, 2017

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.

0reactions
connectdotzcommented, Apr 5, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found