Add class level mutation control (for method only) #3131
Build #4.4.1.107 had test failures
Details
- Failed: 2 (0.03%)
- Passed: 6,409 (99.64%)
- Other: 21 (0.33%)
- Total: 6,432
Annotations
Check failure on line 203 in Build log
azure-pipelines / stryker-net
Build log #L203
Error: The process '/Users/runner/hostedtoolcache/dotnet/dotnet' failed with exit code 1
Check failure on line 224 in Build log
azure-pipelines / stryker-net
Build log #L224
Dotnet command failed with non-zero exit code on the following projects : [
'/Users/runner/work/1/s/src/Stryker.Core/Stryker.Core.UnitTest/Stryker.Core.UnitTest.csproj'
]
Check failure on line 10 in Build log
azure-pipelines / stryker-net
Build log #L10
Path does not exist: /home/vsts/work/1/s/integrationtest/TargetProjects/NetCore/StrykerOutput
Check failure on line 10 in Build log
azure-pipelines / stryker-net
Build log #L10
Path does not exist: /Users/runner/work/1/s/integrationtest/TargetProjects/StrykerOutput
azure-pipelines / stryker-net
Stryker.Core.UnitTest.Instrumentation.RedirectMethodEngineShould.InjectSimpleMutatedMethod
Test method Stryker.Core.UnitTest.Instrumentation.RedirectMethodEngineShould.InjectSimpleMutatedMethod threw exception:
Shouldly.ShouldAssertException: Comparing object equivalence, at path:
injected.ToString() [System.String]
Expected value to be
"class Test
{
public void Basic(int x)
{if(ActiveMutation(2)){Basic_1(x);}else{Basic_0(x);}}
public void Basic_0(int x)
{
x++;
}
public void Basic_1(int x) {x--;}
}"
but was
"class Test
{
public void Basic(int x)
{if(ActiveMutation(2)){Basic_1(x);}else{Basic_0(x);}}
public void Basic_0(int x)
{
x++;
}
public void Basic_1(int x) {x--;}
}"
Raw output
at Stryker.Core.UnitTest.Instrumentation.RedirectMethodEngineShould.InjectSimpleMutatedMethod() in /_/src/Stryker.Core/Stryker.Core.UnitTest/Instrumentation/RedirectMethodEngineShould.cs:line 36
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
azure-pipelines / stryker-net
Stryker.Core.UnitTest.Instrumentation.RedirectMethodEngineShould.InjectSimpleMutatedMethod
Test method Stryker.Core.UnitTest.Instrumentation.RedirectMethodEngineShould.InjectSimpleMutatedMethod threw exception:
Shouldly.ShouldAssertException: Comparing object equivalence, at path:
injected.ToString() [System.String]
Expected value to be
"class Test
{
public void Basic(int x)
{if(ActiveMutation(2)){Basic_1(x);}else{Basic_0(x);}}
public void Basic_0(int x)
{
x++;
}
public void Basic_1(int x) {x--;}
}"
but was
"class Test
{
public void Basic(int x)
{if(ActiveMutation(2)){Basic_1(x);}else{Basic_0(x);}}
public void Basic_0(int x)
{
x++;
}
public void Basic_1(int x) {x--;}
}"
Raw output
at Stryker.Core.UnitTest.Instrumentation.RedirectMethodEngineShould.InjectSimpleMutatedMethod() in /_/src/Stryker.Core/Stryker.Core.UnitTest/Instrumentation/RedirectMethodEngineShould.cs:line 36
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)