question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Stryker.NET failed to mutate your project

See original GitHub issue

Summary

Stryker failed to analyse a solution with the message No .csproj file found. Command line used:

dotnet stryker --solution-path Anemonis.JsonRpc.sln -l debug -f

Logs

  1. log-20190622.txt
  2. stryker-console.log

Expected behavior

Stryker succeeded to analyse a solution.

Environment

  • OS: macOS
  • Project: .NET Standard library (Multiple targets), MSTest v2 (.NET Core 2.2 App target)
  • SDK: .NET Core 2.2.300
  • Version: 0.11.0 (beta)

Additional context

The example project: https://github.com/alexanderkozlenko/json-rpc

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
rouke-broersmacommented, Jun 22, 2019

Hey! Stryker currently needs to be run from the context of the unit test project (we have plans to change this in the future). Could you try running stryker from https://github.com/alexanderkozlenko/json-rpc/tree/master/src/Anemonis.JsonRpc.UnitTests ?

Also the solution file path is not required for dotnet core.

0reactions
rouke-broersmacommented, Jul 7, 2019

Could you create an issue for the html report here: https://github.com/stryker-mutator/mutation-testing-elements

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting | Stryker Mutator
The initial test run might fail when you're using ts-jest or ts-node. The reason for this is that Stryker will mutate your code...
Read more >
Configuration | Stryker Mutator
The project file name is required when your test project has more than one project reference. Stryker can currently mutate one project under...
Read more >
Stryker can't find .csproj file even though it's passed in ...
1 Answer. --project-file should point to the project you intend to mutate, not the unit test project. That is, if My. Project.
Read more >
Newest 'stryker' Questions
Getting different mutation scores each time I run Stryker from the root of the project which has multiple test projects. Does stryker support ......
Read more >
Mutation Analysis with Stryker.NET and SonarQube
Mutation Testing is a type of software testing in which certain statements of the source code are changed/mutated to check if the test...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found