When running stryker for our productive repos (we couldn't run it for a while, since we have switched to MTP), we are getting the following error. (I have tested it for 2 different repos, which I cannot share due to data reasons).
dotnet-stryker --output .stryker/run_1 --project Add.Cli.csproj --test-project test/Add.Cli.Test/Add.Cli.Test.csproj --test-project test/StWriter.Test/StWriter.Test.csproj --test-project test/StWriter.Test.Unit/StWriter.Test.Unit.csproj --test-project test/Cli.Test.Unit/Cli.Test.Unit.csproj --test-project test/Cli.Test/Cli.Test.csproj --test-project test/FileIo.Test/FileIo.Test.csproj --test-project test/FileIo.Test.Unit/FileIo.Test.Unit.csproj --test-project test/Add.Cli.Test.Unit/Add.Cli.Test.Unit.csproj --testrunner mtp --mutation-level Advanced
Version: 4.12.0
[05:50:37 INF] Analysis starting.
[05:50:37 INF] Stryker will mutate solution SafetyCli.
[05:50:37 INF] Using configuration/platform 'Debug|Any CPU'.
[05:50:37 INF] Identifying projects to mutate in /SafetyCli.sln. This can take a while.
[05:50:45 INF] Could not find an assembly reference to a mutable assembly for project /test/Cli.Test.Unit/Cli.Test.Unit.csproj. Will look into project references.
[05:50:45 INF] Could not find an assembly reference to a mutable assembly for project /test/StWriter.Test/StWriter.Test.csproj. Will look into project references.
[05:50:45 INF] Could not find an assembly reference to a mutable assembly for project /test/Cli.Test/Cli.Test.csproj. Will look into project references.
[05:50:45 INF] Could not find an assembly reference to a mutable assembly for project /test/FileIo.Test/FileIo.Test.csproj. Will look into project references.
[05:50:45 INF] Could not find an assembly reference to a mutable assembly for project /test/StWriter.Test.Unit/StWriter.Test.Unit.csproj. Will look into project references.
[05:50:45 INF] Could not find an assembly reference to a mutable assembly for project /test/Add.Cli.Test/Add.Cli.Test.csproj. Will look into project references.
[05:50:45 INF] Could not find an assembly reference to a mutable assembly for project /test/Cli.Test.Apax/Cli.Test.Apax.csproj. Will look into project references.
[05:50:45 INF] Could not find an assembly reference to a mutable assembly for project /test/FileIo.Test.Unit/FileIo.Test.Unit.csproj. Will look into project references.
[05:50:45 INF] Project /src/Add.Cli/Add.Cli.csproj analysis failed hence can't be mutated.
[05:50:45 INF] referenced by test project /test/Cli.Test.Unit/Cli.Test.Unit.csproj, analysis failed.
[05:50:45 INF] referenced by test project /test/Add.Cli.Test/Add.Cli.Test.csproj, analysis failed.
[05:50:45 WRN] can't be mutated because all referencing test projects' analysis failed.
[05:50:45 INF] Test project /test/StWriter.Test/StWriter.Test.csproj does not appear to test any mutable project, analysis failed.
[05:50:45 INF] Test project /test/Cli.Test/Cli.Test.csproj does not appear to test any mutable project, analysis failed.
[05:50:45 INF] Test project /test/FileIo.Test/FileIo.Test.csproj does not appear to test any mutable project, analysis failed.
[05:50:45 INF] Test project /test/StWriter.Test.Unit/StWriter.Test.Unit.csproj does not appear to test any mutable project, analysis failed.
[05:50:45 INF] Test project /test/Cli.Test.Apax/Cli.Test.Apax.csproj does not appear to test any mutable project, analysis failed.
[05:50:45 INF] Test project /test/FileIo.Test.Unit/FileIo.Test.Unit.csproj does not appear to test any mutable project, analysis failed.
[05:50:45 WRN] Use --diag option to have the analysis logs in the log file.
[05:50:45 INF] Analysis complete.
[05:50:45 INF] Time Elapsed 00:00:08.2930823
Stryker.NET failed to mutate your project. For more information see the logs
below:
Failed to analyze project builds. Stryker cannot continue.
The diag log can be found as attachment and it took really long ~3:30m. I have redacted all sensitive data.
Originally posted by @Lorilatschki in #3094