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.

[1.0.0-rc2] --project-file becomes --project

See original GitHub issue

Describe the bug Hello. When I run stryker on a test project pointing to several *.csproj, the command line says Test project contains more than one project reference and gives an example: Example: --project-file=C:\Users\altepe\source\repos\[Redacted].csproj.

However, running the command line with option --project-file fails because it has been updated to --project in v1.

Logs

PS C:\Users\altepe\source\repos\[Redacted].Tests> dotnet stryker
Version: 1.0.0
[11:25:43 INF] Identifying project to mutate.
[11:27:34 INF] Time Elapsed 00:01:50.7980044

Project reference issue.

Test project contains more than one project reference. Please set the project option (https://stryker-mutator.io/docs/stryker-net/configuration#project-file-name) to specify which project to mutate.
Choose one of the following references:

  C:\Users\altepe\source\repos\[Redacted].csproj
  C:\Users\altepe\source\repos\[Redacted].cli.csproj

Example: --project-file=C:\Users\altepe\source\repos\[Redacted].csproj

Expected behavior I’d like to propose two options:

  1. Update documentation and command line error messages to --project instead of currently --project-file. I would favor this one. It will impact a very few lines of code. Though this would go against https://github.com/stryker-mutator/stryker-net/issues/142 and https://github.com/stryker-mutator/stryker-net/pull/129.
  2. Update command line option to set it back to --project-file instead of the currently supported --project.

Which one would you recommend?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
rouke-broersmacommented, Sep 18, 2021

The configuration docs are modeled after the stryker-js and the stryker4s docs to bring them more in line with eachother. I used <> instead of [] because in my experience [] usually means optional argument and is also used for options that accept multiple arguments so I found that to be confusing.

I do agree that there is some inconsistency in the usage example given, afaik mostly on array or boolean types, but I would not go so far as to diverge from the other docs again when this was an attempt to get more in line with the rest.

Let’s start a discussion here: https://github.com/stryker-mutator/stryker-mutator.github.io/discussions That way all stryker projects can weigh in on how the configuration pages should look.

0reactions
corentinaltepecommented, Sep 18, 2021

Thank you @philrowan-mtb. My assumption about markdown links was wrong, and the link was correct. So I did not modify it.

I agree with your proposition to restructure documentation. It would offer better clarity. Should we go for it? We’d have to search for all links to the doc to update them. Should we track this work in a separate issue ticket?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Swapping from ASP .Net Core 1.0.0-rc2-final to ...
Here is a project.json file created when you create a new web app in VS: "dependencies": { "Microsoft.NETCore.App": { "version": "1.0.0", ...
Read more >
Converting ASP.NET Core 1.0 RC2 to RTM Bits
Project.json. Rename all the “1.0.0-rc2-final” references to just “1.0.0”. Rename all the 1.0.
Read more >
Your First ASP.NET Core 1.0 App
NET Core 1.0 application can be built using the Empty project template. ... Once the file gets added to the project, open the...
Read more >
Failed to install packages that target a range of python ...
I am on the latest Poetry version. I have searched the issues of this repo and believe that this is not a duplicate....
Read more >
Announcing Scala.js 1.0.0-RC2
We are thrilled to announce the release of Scala.js 1.0.0-RC2! ... their projects with this RC, and report any issue as soon as...
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