junit 5: add error to output if identifier is not unique

This commit is contained in:
Anna.Kozlova
2016-12-30 11:33:10 +01:00
parent e5cd108350
commit 4aab3410f3
@@ -281,6 +281,9 @@ public class JUnit5TestExecutionListener implements TestExecutionListener {
if (visited.add(childIdentifier)) {
sendTreeUnderRoot(testPlan, childIdentifier, visited);
}
else {
System.err.println("Identifier \'" + childIdentifier.getUniqueId() + "\' is reused");
}
}
myPrintStream.println("##teamcity[suiteTreeEnded" + idAndName + "\']");
}