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
Refer to correct property in skipping-tests doc #262
Conversation
This is a misunderstanding because |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I think we're mixing up three different issues here:
This mini-PR only addresses point 1. Working on 2 doesn't seem valuable until 3 has been resolved. |
The author of the doc separated the text been dedicated to the Surefire and Failsafe plugin using IF-ELSE decision making in one doc file. That's the (1). We do not copy the doc from Surefire module to the Failsafe module and we only switch few lines of text which is maybe 10%. The consequence of this PR is (2) and that means the we will have a big problem to split skipping Surefire tests and Failsafe test in the future. This is the impact I can see with this PR. The goal should be to have two properties. Since the Maven knows only Surefire bound to the phase |
The docs are separated using IF-ELSE but the author of the current documentation clearly wanted to document both To skip running the tests for a particular project, set the <<skipITs>> property to <<true>>.
+---+
[…long example with <skipITs>true</skipITs>…]
+---+
You can also skip the tests via the command line by executing the following command:
+---+
-mvn install -DskipITs
+mvn install -DskipTests
+---+
Since <<<skipTests>>> is also supported by the ${thatPlugin} Plugin, this will have the effect
of not running any tests. If, instead, you want to skip only the integration tests
being run by the ${thisPlugin} Plugin, you would use the <<<skipITs>>> property instead:
+---+
mvn install -DskipITs
+---+ Please either merge or close this PR instead of leaving it hanging. |
I believe that this correction is valid. Merging. |
I found a little error when reading https://maven.apache.org/surefire/maven-failsafe-plugin/examples/skipping-tests.html :
The former command should refer to
skipTests
instead.