You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I want to calculate the mutation score of only the changed lines of code after raising a pull request. After having this discussion, I decided to use -m config provided by stryker. When i pass the command dotnet-stryker -m "**/SomeFile.cs" mutation score gets calculated but after passing command dotnet-stryker -m "/SomeFile.cs{7...66}" the score does not get claculated and instead mutation gets ignored. I also checked for mutants between those lines and there exists alot of mutants also test cases are written for them.
Logs
Analysis complete.
Building solution somefile.sln
Building project somefile.sln using dotnet build somefile.sln
Number of tests found: 3 for project Initial test run started.
277 mutants created
Capture mutant coverage using 'CoverageBasedTest' mode.
Hint: by passing "--open-report or -o" the report will open automatically and update the report in real-time.
4 mutants got status CompileError. Reason: Mutant caused compile errors
273 mutants got status Ignored. Reason: Removed by mutate filter
277 total mutants are skipped for the above mentioned reasons
0 total mutants will be tested
It looks like all mutants with tests were ignored. Try a re-run with less ignoring!
It looks like all mutants resulted in compile errors. Mutants sure are strange!
Expected behavior
When I pass the line numbers with filename to -m config I expected it to give me the mutation score for that line span if mutations exists for those lines which in my case does.
Desktop (please complete the following information):
OS: [e.g. Windows] - Windows
Type of project [framework, core, xamarin] - c# dotnet
Framework Version [e.g. core 2.2] - .NET Core sdk 8.0.x
Stryker Version [e.g. beta 0.10.0] - dotnet-stryker 4.0.6
The text was updated successfully, but these errors were encountered:
Describe the bug
I want to calculate the mutation score of only the changed lines of code after raising a pull request. After having this discussion, I decided to use -m config provided by stryker. When i pass the command dotnet-stryker -m "**/SomeFile.cs" mutation score gets calculated but after passing command dotnet-stryker -m "/SomeFile.cs{7...66}" the score does not get claculated and instead mutation gets ignored. I also checked for mutants between those lines and there exists alot of mutants also test cases are written for them.
Logs
Analysis complete.
Building solution somefile.sln
Building project somefile.sln using dotnet build somefile.sln
Number of tests found: 3 for project Initial test run started.
277 mutants created
Capture mutant coverage using 'CoverageBasedTest' mode.
Hint: by passing "--open-report or -o" the report will open automatically and update the report in real-time.
4 mutants got status CompileError. Reason: Mutant caused compile errors
273 mutants got status Ignored. Reason: Removed by mutate filter
277 total mutants are skipped for the above mentioned reasons
0 total mutants will be tested
It looks like all mutants with tests were ignored. Try a re-run with less ignoring!
It looks like all mutants resulted in compile errors. Mutants sure are strange!
Expected behavior
When I pass the line numbers with filename to -m config I expected it to give me the mutation score for that line span if mutations exists for those lines which in my case does.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: