Questions tagged [stryker-net]
9 questions
3
votes
2 answers
Stryker.NET support for SLN files from the root of the project
Getting different mutation scores each time I run Stryker from the root of the project which has multiple test projects.
Does stryker support running '.sln' files from the root of the project?
Command used from the root of the project:
dotnet…

Itachi
- 41
- 3
2
votes
2 answers
Ignore log entries in Stryker mutation test
I'm adding Stryker.net to my C# project. I see that it mutates on all log entries. Is there any way I can ignore these in the config?

runnerpaul
- 5,942
- 8
- 49
- 118
2
votes
1 answer
Configure multiple project files in Stryker.Net test
I have a Stryker test with this stryker-config.json:
{
"stryker-config": {
"reporters": [
"progress",
"html",
"json"
],
"log-level": "info",
"log-file": true,
"timeout-ms": 10000,
"project-file":…

runnerpaul
- 5,942
- 8
- 49
- 118
1
vote
1 answer
How to incorporate Stryker.NET tool in Azure DevOps pipelines in case of multiple project dependencies in a test project?
I have a unit test project file which depends on two other projects. ABC.Service.UnitTest is the test project and its dependencies are XYZ.Service.csproj and LMN.Aggregator.csproj.
In this case, what exactly do we need to have in our config file and…

Sriniketan R
- 11
- 1
1
vote
1 answer
Is it possible to mention the output html location for dotnet-stryker?
I am trying to run mutations over my .NET project using stryker and indeed able to do it successfully using the command :-
dotnet stryker -s Assessment.sln -p
I want to specify the target location where the html…

Simar Singh
- 415
- 1
- 7
- 14
0
votes
2 answers
Simple mutation unit testing erroneously report survival of the mutation of the exception message
Suppose we have a Calculator with a divide method throwing error if the denominator is 0:
public class Calculator
{
public double Divide(int x, int y)
{
if (y == 0)
{
throw new…

JamesL
- 351
- 2
- 10
0
votes
0 answers
Stryker Mutation test fails when debug statement is added in c# method
Stryker fails to run any test cases under a xunit test class when debug statement is included in the code block.
I have a few test cases covering the below method. Stryker fails to run those tests and also other tests available for other methods in…

IamChandu
- 355
- 6
- 18
0
votes
1 answer
The point of Stryket.Net since.ignore-changes-in config
Stryker-net has an option since.ignore-changes-in and I'm trying to understand in which use case it may be useful to ignore non C# files 1.
The doc gives that example of value ['/*Assets.json','/favicon.ico'], but if my last commit changes only…

gturri
- 13,807
- 9
- 40
- 57
0
votes
1 answer
Unable to install Dotnet Stryker
I have tried the below commands to install dotnet stryker to my project to improve the mutation testing but getting below error message and it does not allow me to install the tool.
Could you please help on this.
Thanks in advance
PS C:\Users>…