Skip to content

Consumes too much time #5152

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

Open
theextractor opened this issue Jan 9, 2025 · 1 comment
Open

Consumes too much time #5152

theextractor opened this issue Jan 9, 2025 · 1 comment
Labels
⁉ Question Further information is requested

Comments

@theextractor
Copy link

Question
I used stryker-mutator/karma-runner:^8.7.1 to run the mutation test in my angular14 project.

It took 2.5 hours to run the mutation test on 100 files with around 2.5k mutants. I ran it in my local machine with 4 concurrent processors. Is it normal? Do we have any recommendations to improve this? Ideally, I would want to bring this down to less than 10 minutes. Any suggestions?

@theextractor theextractor added the ⁉ Question Further information is requested label Jan 9, 2025
@bartekleon
Copy link
Member

Usually stryker execution time is strictly related to how long your unit tests take, as mutation testing is basically running your unit tests a lot.
You could try disabling some files / mutants https://stryker-mutator.io/docs/stryker-js/disable-mutants/
You could also try using incremental testing https://stryker-mutator.io/docs/stryker-js/incremental/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⁉ Question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants