Stryker errors when the Since option is set #2451
Unanswered
JosePedroRoriz
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Which ci tool do you use? Might be that they do some kind of shallow checkout that doesn't contain the info we need in scandiff. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First of all let me say thank you for creating this amazing tool.
I am currently in the process of having stryker run on our pipelines and managed to get it to the point where it does a full mutation. My issue now is I only want to mutate changes done at a PR level. From reading the stryker .net configuration documentation it seems to suggest using the Since option with the current branch name.
Having done that stryker starts running and fails with an error message from LibGit2Sharp.NotFoundException "requested file is a directory". I built a small spike solution using the LibGit2Sharp solution where i hard coded my git paths (everything seemed correct) and it fails when it tried to run git_patch_from_diff. From here i ran a git diff where it showed the changes i expected and a git diff>someStuff.patch where it also had what i expected. From running stryker locally this happens in GitDiffProvider.cs inside the ScanDiff method.
So my question here is, is the problem with my stryker.config? Or is it something else?
My stryker config looks like this:
{
"stryker-config": {
"project": "My.Proj.Services",
"report-file-name": "My.Proj.Services",
"since": {
"enabled": true,
"target": "MyBranch"
},
"concurrency": 8,
"reporters": [
"progress",
"html"
],
"thresholds": {
"high": 80,
"low": 80,
"break": 80
},
"mutation-level": "Standard",
"ignore-methods": [
"ToString",
"Console.Write*"
],
"mutate": [
"!Program.cs",
"!Startup.cs"
]
}
}
The change i did in MyBranch was adding a simple method to a service in hopes of seeing a mutation score of 0 for that service.
Please let me know if more info is needed to help diagnose why this is happening.
Kind regards,
Pedro
Beta Was this translation helpful? Give feedback.
All reactions