Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Reduce time needed for mutation tests #24

Open
ricardoboss opened this issue May 24, 2022 · 0 comments
Open

Reduce time needed for mutation tests #24

ricardoboss opened this issue May 24, 2022 · 0 comments
Labels
good first issue Good for newcomers meta Issues not directly related to code

Comments

@ricardoboss
Copy link
Member

ricardoboss commented May 24, 2022

GitHub actions is a great tool to automatically run tests and analyze the codebase. One such test is the mutation test suite using infection.

The mutation test take the longest time in the entire pipeline, due to all the possible mutations that are tested. The more code gets added, the longer the mutation tests will take with exponential growth.

The goal of this issue is to reduce the time need to run mutation tests. One way would be to run mutation tests only on the git diff, like described at infection.github.io/guide/command-line-options.html#git-diff-filter.

Another option would be to not update the mutation score with every commit, but on a schedule, like this note describes: https://github.com/elephox-dev/framework/projects/1#card-83143011

@ricardoboss ricardoboss added the meta Issues not directly related to code label May 24, 2022
@ricardoboss ricardoboss added the good first issue Good for newcomers label May 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers meta Issues not directly related to code
Projects
None yet
Development

No branches or pull requests

1 participant