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

Speed up Infection runs by remembering which test killed a mutant #1519

Closed
MidnightDesign opened this issue May 10, 2021 · 2 comments
Closed

Comments

@MidnightDesign
Copy link
Sponsor Contributor

As @maks-rafalko pointed out to me on Discord, Infection currently runs the tests for a mutant in order from fastest to slowest, but if the killing test is the slowest, it will always be run last.

It might be beneficial for Infection to remember (i.e. save in a file on disk, for example) which test killed a mutant so it can run that test first the next time. If that test wasn't run the last time or or if it doesn't kill the mutant, it could fall back to the current system.

This strategy would be most beneficial in development environments, but it could potentially also be used in CI by committing the mutant -> test map to the repository.

@maks-rafalko
Copy link
Member

@MidnightDesign feel free to experiment with the first implementation #1549

@maks-rafalko
Copy link
Member

Implemented in #1549

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

No branches or pull requests

2 participants