-
-
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
Cannot pass tag expression to maven-surefire-plugin #1596
Comments
Try:
|
I entered that flag slopily in the description. |
Please do. I copied that out of an existing project. |
Bad call - I cannot reproduce it in a minimal example. I must a have problem in a configuration then. |
Are you using multiple tags by any chance? |
Just a negation. |
I have tried different configurations using my minimal example and I came to the following conclusion. |
Differences between versions: |
You probably have to report this to surefire. The command line is valid. |
I don't think it's possible to use newest maven-surefire-plugin with cucumber currently. |
Perhaps we should also consider making tags work without explict |
We can't disambiguate between |
@Mike-now at version
|
Looks like this fixed properly in maven-shared-utils/33659 but hasn't made it into the latest Surefire yet. It will be a matter of patience. |
Adds properties for all CLI options. Removes the ability to load rerun files from the class-path. There appears to be no use case and it significantly simplifies the implementation. ## Details Adds: ``` cucumber.ansi-colors.disabled cucumber.execution.dry-run cucumber.execution.limit cucumber.execution.order cucumber.execution.parallel.config.fixed.parallelism cucumber.execution.strict cucumber.execution.wip cucumber.feature cucumber.rerun-file cucumber.filter.name cucumber.filter.tags cucumber.glue cucumber.object-factory cucumber.plugin cucumber.snippet-type ``` ## Motivation and Context It is possible to pass properties to cucumber using CLI arguments in a property. E.g: ``` mvn clean test -Dcucumber.options="--strict --monochrome" ``` This is rather complicate, esp when multiple layers are involved and quotes get confusing (e.x: #1596). ``` mvn clean test -Dcucumber.options='--strict --monochrome --tags "not @ignored"' ``` A better way to do this would be to provide each option individually: ``` mvn clean test -Dcucumber.strict=true -Dcucumber.ansi-colors.disabled=true -Dcucumber.filter.tags="not @ignored" ``` Closes #1675
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
The new multi-token expression syntax makes it impossible to declare multi token tag expression in the --tags flag inside the -Dcucumber.options flag in maven-surefire-plugin configuration.
Expected Behavior
It should be possible possible to pass multi token tag expression in the -Dcucumber.options flag.
Current Behavior
maven-surefire-plugin crashes throwing either VM crash, IllegalArgumentException or doesn't run any tests depending on the input.
Possible Solution
Make it possible to make single token tag expression without any whitespace characters.
Steps to Reproduce (for bugs)
mvn test
Context & Motivation
My use case is injecting tag expression from parent pom.
Your Environment
The text was updated successfully, but these errors were encountered: