-
Notifications
You must be signed in to change notification settings - Fork 222
Replies: 2 comments · 5 replies
-
|
Some things i can assure:
|
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Update: I narrowed it down by removing all non-standard references (meaning all nuget installed or system packages are referenced) There is only the reference to the project under test. But i still get the error message |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
try running Stryker with |
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
|
Nice. I missed that flag. What i directly saw:
|
Beta Was this translation helpful? Give feedback.
All reactions
-
|
[08:32:41 INF] Logging enabled at level Trace [08:32:42 DBG] Stryker started with options: {"MsBuildPath": null, "DevMode": true, "ProjectPath": "C:PathToTestProject", "IsSolutionContext": false, "WorkingDirectory": "C:PathToTestProject", "OutputPath": "C:PathToTestProject\StrykerOutput\2025-09-29.08-32-40", "ReportPath": "C:PathToTestProject\StrykerOutput\2025-09-29.08-32-40\reports", "ReportFileName": "mutation-report", "SolutionPath": "C:PathToSolution\Solutin.sln", "Configuration": null, "TargetFramework": null, "LogOptions": {"LogToFile": false, "LogLevel": "Verbose", "$type": "LogOptions"}, "MutationLevel": "Advanced", "Thresholds": {"High": 80, "Low": 60, "Break": 0, "$type": "Thresholds"}, "AdditionalTimeout": 5000, "LanguageVersion": "CSharp7_3", "Concurrency": 8, "SourceProjectName": "ProjetUnderTest.Test.csproj", "TestProjects": [], "TestCaseFilter": "", "Reporters": ["Progress", "Html"], "WithBaseline": false, "BaselineProvider": "Disk", "AzureFileStorageUrl": "", "AzureFileStorageSas": "", "DashboardUrl": "https://dashboard.stryker-mutator.io", "DashboardApiKey": null, "Since": false, "SinceTarget": "master", "DiffIgnoreChanges": [], "FallbackVersion": "master", "ModuleName": "", "ReportTypeToOpen": null, "Mutate": [{"Glob": {"Tokens": [{"TrailingPathSeparator": {"Value": "\", "$type": "PathSeparatorToken"}, "LeadingPathSeparator": null, "$type": "WildcardDirectoryToken"}, {"$type": "WildcardToken"}], "$type": "Glob"}, "IsExclude": false, "TextSpans": [{"Start": 0, "End": 2147483647, "Length": 2147483647, "IsEmpty": false, "$type": "TextSpan"}], "$type": "FilePattern"}], "IgnoredMethods": [], "ExcludedMutations": [], "ExcludedLinqExpressions": [], "OptimizationMode": "CoverageBasedTest", "ProjectName": "", "ProjectVersion": "", "BreakOnInitialTestFailure": false, "MutantIdProvider": {"$type": "BasicIdProvider"}, "$type": "StrykerOptions"} Property SatelliteDllsProjectOutputGroupDependenciesDependsOn=\n ;\n \n ;\n BuildOnlySettings;\n PrepareForBuild;\n AssignTargetPaths;\n ResolveReferences\n \n Property DocumentationProjectOutputGroupDependenciesDependsOn=\n ;\n \n ;\n BuildOnlySettings;\n PrepareForBuild;\n AssignTargetPaths;\n ResolveReferences\n \n Property SGenFilesOutputGroupDependenciesDependsOn=\n ;\n \n ;\n BuildOnlySettings;\n PrepareForBuild;\n AssignTargetPaths;\n ResolveReferences\n \n **** End Buildalyzer result **** [08:33:14 DBG] Analysis of project Project.Tests.csproj succeeded. No project references found. Please add a project reference to your test project and retry. |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
hi @TimThaler Rationale:
Rule N°2 is enough for SDK style projects, the other two rules are fallback for legacy project files. Looking at your test project csproj file, I realize that NUnit has changed its capitalization to nunit (comparison is case sensitive to limit false positive). As a general observation, Stryker analysis phase has been optimistically designed. We assumed we could a reach a point where it would never fail, hence the basic error messages, but in practice, it is still a complex phase that may fail for ma y reasons. |
Beta Was this translation helpful? Give feedback.
All reactions
-
❤️ 1
-
|
Excellent, with this property set. Stryker completes its mutation run. I also added it to our real-word project. There are now popping up different error messages. I do not have the time now to dig deeper there, but hopefully soon. Thanks also for the explanation!! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This is already discussed here and here.
I am trying to use stryker with one of our test projects in C#. This projects references many other source-projects (not just the one testing) and even another test project. I think this is
When running stryker with
dotnet stryker -Lis gives me :No project references found. Please add a project reference to your test project and retry.The directry where i issue the command
dotnet strykercontains theProject.Test.csproj-File, e.g. the test project directry is the working directory. The referenced solution file lives two levels up.Below i pasted stryker config file, parts of the csproj file of the testproject, and the log output.
The console output is:
The log file contains this: (the timestamps missmatch but the output is identical)
The
.csproj-File:Stryker Setup:
Beta Was this translation helpful? Give feedback.
All reactions