Skip to content

🐛 MutationTests fails when running from develop but there is no main branch #195

@candoumbe

Description

@candoumbe

Usage Information

Package version : 1.0.0-rc.25

Relevant Code / Invocations

To reproduce this bug, you must have :

  • a repository with only a develop branch
  • a pipeline that uses both IGitFlowWithPullRequest and IMutationTest components

The pipeline is defined as follow

public class Build : EnhancedNukeBuild,
    IHaveSourceDirectory,
    IHaveTestDirectory,
    IGitFlowWithPullRequest,
    IClean,
    IDotnetFormat,
    IRestore,
    IMutationTest,
    IBenchmark,
    IReportUnitTestCoverage,
    IReportIntegrationTestCoverage,
    IPushNugetPackages,
    ICreateGithubRelease
{
  // Code omitted for brievity
}
  • be on the develop branch with at least some unit tests
  • ./build.cmd mutation-tests throw an exception

Expected Behavior

Mutation tests target run with no error.

Stacktrace / Exception

System.AggregateException: One or more errors occurred. (Process 'dotnet' exited with code 1.
   > /home/candoumbe/.dotnet/dotnet /home/candoumbe/.nuget/packages/dotnet-stryker/4.8.1/tools/net8.0/any/Stryker.CLI.dll --open-report:Html --reporter Progress --reporter Html --target-framework net9.0 --output /home/candoumbe/Projects/Perso/MedEasy/agenda/output/artifacts/tests-results/mutation-tests/Agenda.API/net9.0 --project Agenda.API.csproj --config-file /home/candoumbe/Projects/Perso/MedEasy/agenda/tests/Agenda.API.UnitTests/stryker-config.json --test-project /home/candoumbe/Projects/Perso/MedEasy/agenda/tests/Agenda.API.UnitTests/Agenda.API.UnitTests.csproj --version develop --with-baseline:main   

Metadata

Metadata

Assignees

Labels

area:mutation-testsRelated to `IMutationTest` componentarea:tests 🧪Related to test componentsarea:workflowRelated to git branching strategybug 🐛Something isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions