-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI: Allow user to set custom base path #2953
Comments
I am not sure I understand this correctly. Also note that you cannot use Stryker on its own folder: project analysis will fail. You need to use it against another copy of the project. This is a limitation of buildalyzer that we never tried to fix as it is easy to workaround and very, very specific. |
You can, but this assumes that you're running Stryker from a "convenient" location, e.g. from PATH or global dotnet tool installation. It also seems more intuitive (to me) so that you're not For example, say that I made a local change to Debug executable is located here: My test project locations: Currently, I would have to EDIT: This would also help when setting breakpoints and running from the IDE since a simple flag could be set in the run configuration. As a temporary way to make that easier, I just hardcode the base path in
I meant it would be useful for devs working on |
I understand the wish, but this is an change that has the potential to have a large impact. Having to deal with filepaths is hard enough as it is, not being able to make assumptions about paths will require a very thorough review of all functionalities. That's not to say that it's a bad thing, but that it might turn out to be quite a lot of work, and break a lot of things in places where we made assumptions that we should not have. |
Is your feature request related to a problem? Please describe.
When running the CLI, it would be useful to override the base path to a value other than the current working directory.
This feature would be useful for mutating projects in the following scenarios:
stryker-net
project itself, e.g. trying to run frombin/Debug
Describe the solution you'd like
Add flag to set a custom base path.
Describe alternatives you've considered
N/A
Additional context
Code that handles setting the base path here:
stryker-net/src/Stryker.CLI/Stryker.CLI/ConfigBuilder.cs
Lines 26 to 27 in 6556ab9
The text was updated successfully, but these errors were encountered: