-
Notifications
You must be signed in to change notification settings - Fork 248
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
Append a plugin with command line (without removing configured plugins) #2253
Comments
Hi 🤝 @Garethp let me take care of that coat for you🧥, feel free to get a coffee in the kitchen ☕! Normally it should not be needed to override plugins from the command line. You should be able to always load all plugins, but only activate those you want to be activated. The only plugin type that is always active right now are For example, you can load The plugin type you are interested in is the new Does this solve your issue? |
That's one plugin I'd like to load in the future, but what I'm looking at in this specific instance is a new My ideal usage for this feature is to allow my IDE plugin to simply call And personally as a user of my own plugin, I'd rather not have to add this to the config for a whole team when myself or one other dev might be the only one using the plugin, since it's IDE/dev specific and not project specific. |
Cool! I think I now understand what you mean. I see 2 ways of implementing this.
I'm actually leaning towards option 2. What do you think @Garethp? cc @simondel |
Option 2 sounds like the clearest way to interact with it |
Merged with #2385 |
Is your feature request related to a problem? Please describe.
I want to be able to add a plugin through command line (A new reporter), without removing existing plugins. When writing a tool that tried to add functionality to Stryker, I don't know what plugins are being included with the configuration file, but if I try to add it through
--plugins
, then it removes any plugins already specified (Such astypescript
)Describe the solution you'd like
I'd like a new
--plugin
argument that appends to the array of plugins, rather than replacing itDescribe alternatives you've considered
I've considered parsing the config file, but that seems rather onerous since my tool isn't built in JS. I've also considered just adding
@stryker-mutator/*
, but the user might be using other plugins (Like I intend to with Specific Lines filter).A workaround that I'll likely use without this feature is to ask users to have this plugin specified in their config file, but it's not something that my tool can verify that they're using (and therefore would cause an error if I try to specify that this reporter should be used), so it would better if my tool can explicitly say that this plugin should be in use
The text was updated successfully, but these errors were encountered: