-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Cucumber command line options not overriding #2190
Comments
The I don't quite understand the practical problem you are facing though. Are you intentionally trying to disable the plugins specified in |
We have a common pipeline to run all our test jobs in jenkins that tries to enable the The pretty plugin is also specified in the CucumberOptions. If these are merged shouldnt the check be done after merging them together? |
The merge is pretty naive. It doesn't filter out duplicates, but that is something that could be implemented. |
It is possible to declare duplicate plugins. Either through `@CucumberOptions`, or `cucumber.plugin`, ect or a combination thereof. This can be used to ensure certain plugins are always active during a build in CI. Merging duplicate plugin options should ensure that plugins are not instantiated twice with the same output. Fixes: #2190
It is possible to declare duplicate plugins. Either through `@CucumberOptions`, or `cucumber.plugin`, ect or a combination thereof. This can be used to ensure certain plugins are always active during a build in CI. Merging duplicate plugin options should ensure that plugins are not instantiated twice with the same output. Fixes: #2190
Wow @mpkorstanje that was quick! Thankyou very much |
Describe the bug
The
cucumber.plugin
command line options are not overriding the ones set on the CucumberOptions.with the following runner
when the following maven command is ran
gives the following error
Removing
pretty
from the CucumberOptions makes it work from the command line, but does not add the pretty formatter when run from eclipse.Expected behavior
Command line options should override the CucumberOptions annotation
Your Environment
The text was updated successfully, but these errors were encountered: