Merge pull request #12894 from s1monw/fix_repro_line
Fix reproduction line to include project filters
This commit is contained in:
commit
03ceabb1da
|
@ -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());
|
||||
|
||||
|
|
1
pom.xml
1
pom.xml
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue