Skip to content

Exclude code files that generate error messages? #2017

Closed Answered by dupdob
JustineSondore asked this question in Q&A
Discussion options

You must be logged in to vote

The short answer is that, yes, you understand this correctly: mutations are still generated but ignored.

As of now, there is no way to completely exclude file (or part of a file) from being mutated. One can only request Stryker to ignore some mutations (see documentation).
This is on purpose as it still tracks generated mutations, allowing one to decide to stop ignoring them, and we estimate there is no benefit in actually exclude files from being mutated.

Regarding the error you are reporting, I would like to stress out this is a warning because Stryker faced an error for which it could not identify which mutation was the cause. Therefore, it needs to removes all mutation from the concer…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rouke-broersma
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants