Skip to content
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

Watch mode: Run only those tests that are impacted by file change #2991

Open
nightscape opened this issue Jan 26, 2024 · 2 comments
Open

Watch mode: Run only those tests that are impacted by file change #2991

nightscape opened this issue Jan 26, 2024 · 2 comments

Comments

@nightscape
Copy link
Contributor

nightscape commented Jan 26, 2024

If I understand correctly, the result of the incremental Zinc compilation should yield the information which test files have been impacted by a change in another test or implementation file.
If so, this information could be used to trigger a re-run of only those impacted test files in watch mode, giving nice short feedback cycles even in bigger projects.
In SBT I would never dare to touch the codebase to do such a change, but in Mill I would dare to give it a try 😃

@nightscape nightscape changed the title Watch hRun only those tests Watch mode: Run only those tests that are impacted by file change Jan 26, 2024
@nightscape
Copy link
Contributor Author

Probably related: #2417

@lefou
Copy link
Member

lefou commented Jan 26, 2024

Nobody is going to stop you. 👌‍ If I'm not mistaken, sbt has some test task variant, that is also only running tests affected by change. testQuick or something like that. Don't know if it is the same, but it might be worth to get inspiration from it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants