Skip to content
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

config options not available on command line #5153

Open
ljharb opened this issue Jan 15, 2025 · 3 comments
Open

config options not available on command line #5153

ljharb opened this issue Jan 15, 2025 · 3 comments
Labels
🚀 Feature request New feature request

Comments

@ljharb
Copy link

ljharb commented Jan 15, 2025

Is your feature request related to a problem? Please describe.
Specifically, I want the commandRunner.command to be something other than npm test, and i don't want to have to have a config file in projects.

Describe the solution you'd like
npx @stryker-mutator/core run --commandRunner.command='npm run tests-only'

Describe alternatives you've considered
I suppose it could be a different command name, but I'd expect every single config option, without exception, to be settable via the command line.

Additional context
nope

@ljharb ljharb added the 🚀 Feature request New feature request label Jan 15, 2025
@nicojs
Copy link
Member

nicojs commented Jan 16, 2025

Hi @ljharb, welcome 👋

This sounds great to me. Until now, I've arbitrarily created command-line options whenever I saw a use case for them or felt the need for them. Do you want to add this in a PR?

@ljharb
Copy link
Author

ljharb commented Jan 16, 2025

sure, can you point me to where i should look? there's lots of packages in this monorepo :-)

@nicojs
Copy link
Member

nicojs commented Jan 16, 2025

This file contains the command line parsing. https://github.com/stryker-mutator/stryker-js/blob/master/packages%2Fcore%2Fsrc%2Fstryker-cli.ts

Also the corresponding unit test file.

The docs for the website can be found inside the /docs directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚀 Feature request New feature request
Projects
None yet
Development

No branches or pull requests

2 participants