Maven Plugin
mvn baselinetest:test
not find the plugin?Specialized Testing
mvn test
will execute the test phase of the build lifecycle and all phases that precede it.
mvn baselinetest:test
will execute the test goal in the baselinetest plugin. This will not compile the test classes or execute any of the other phases of the build lifecycle.
[top] |
By default, Surefire will attempt to load any file matching **/Test*.java **/*Test.java **/*TestCase.java as a JUnit test. Since most baseline tests match this pattern, it is advisable to simply disable surefire if you have no Surefire tests. If necessary, the Surefire plugin can be enabled and configured to exclude certain names. See Surefire documentation for details.
Note that the Baseline Test Framework is not invoked via Surefire.
[top] |
mvn baselinetest:test
not find the plugin?
mvn baselinetest:test
may cause the following error:
The plugin 'org.apache.maven.plugins:maven-baselinetest-plugin' does not exist or no valid version could be found
Edit your .m2/settings.xml file to include the following lines:
<settings> <pluginGroups> <pluginGroup>com.centurylogix.maven.plugins</pluginGroup> </pluginGroups> </settings>
[top] |
Visit this link for your reference, Attaching tests
[top] |
mvn test -Dbaselinetest.skip=true
.
[top] |
mvn test -Dbaselinetest.contexts=MyContext -Dbaselinetest.suites=MySuite
.
This will disable any contexts, suites, and vm settings from the pom.
[top] |
Use a build profile. See example for details.
[top] |
Use additional test profiles. See example for details.
[top] |