Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add class level mutation control (for method only) #3131

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Merge remote-tracking branch 'origin/master' into memberMutantSupport

b78fc59
Select commit
Loading
Failed to load commit list.
Draft

Add class level mutation control (for method only) #3131

Merge remote-tracking branch 'origin/master' into memberMutantSupport
b78fc59
Select commit
Loading
Failed to load commit list.
Azure Pipelines / stryker-net failed Dec 3, 2024 in 18m 41s

Build #4.4.1.107 had test failures

Details

Tests

  • 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

See this annotation in the file changed.

@azure-pipelines 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

See this annotation in the file changed.

@azure-pipelines 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

See this annotation in the file changed.

@azure-pipelines 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

See this annotation in the file changed.

@azure-pipelines azure-pipelines / stryker-net

Build log #L10

Path does not exist: /Users/runner/work/1/s/integrationtest/TargetProjects/StrykerOutput

Check failure on line 1 in Stryker.Core.UnitTest.Instrumentation.RedirectMethodEngineShould.InjectSimpleMutatedMethod

See this annotation in the file changed.

@azure-pipelines 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)

Check failure on line 1 in Stryker.Core.UnitTest.Instrumentation.RedirectMethodEngineShould.InjectSimpleMutatedMethod

See this annotation in the file changed.

@azure-pipelines 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)