Merge pull request #12894 from s1monw/fix_repro_line

Fix reproduction line to include project filters
This commit is contained in:
Simon Willnauer 2015-08-14 22:52:55 +02:00
commit 03ceabb1da
2 changed files with 6 additions and 1 deletions

View File

@ -78,10 +78,14 @@ public class ReproduceInfoPrinter extends RunListener {
final StringBuilder b = new StringBuilder();
if (inVerifyPhase()) {
b.append("REPRODUCE WITH: mvn verify -Pdev -Dskip.unit.tests");
b.append("REPRODUCE WITH: mvn verify -Pdev -Dskip.unit.tests" );
} else {
b.append("REPRODUCE WITH: mvn test -Pdev");
}
String project = System.getProperty("tests.project");
if (project != null) {
b.append(" -pl " + project);
}
MavenMessageBuilder mavenMessageBuilder = new MavenMessageBuilder(b);
mavenMessageBuilder.appendAllOpts(failure.getDescription());

View File

@ -623,6 +623,7 @@
<tests.appendseed>${tests.appendseed}</tests.appendseed>
<tests.cluster>${tests.cluster}</tests.cluster>
<tests.iters>${tests.iters}</tests.iters>
<tests.project>${project.groupId}:${project.artifactId}</tests.project>
<tests.maxfailures>${tests.maxfailures}</tests.maxfailures>
<tests.failfast>${tests.failfast}</tests.failfast>
<tests.class>${tests.class}</tests.class>