Skip to content

Commit

Permalink
Properly format reproduction lines for test methods that contain peri…
Browse files Browse the repository at this point in the history
…ods (#43255)
  • Loading branch information
mark-vieira committed Jun 18, 2019
1 parent aa6248d commit 0867ea7
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,14 @@ public void testFailure(Failure failure) throws Exception {
b.append(failure.getDescription().getClassName());
final String methodName = failure.getDescription().getMethodName();
if (methodName != null) {
b.append(".");
b.append(failure.getDescription().getMethodName());
// fallback to system property filter when tests contain "."
if (methodName.contains(".")) {
b.append("\" -Dtests.method=\"");
b.append(methodName);
} else {
b.append(".");
b.append(methodName);
}
}
b.append("\"");

Expand Down

0 comments on commit 0867ea7

Please sign in to comment.