-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Strip out seed from reproduce method name #121987
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,8 +77,11 @@ public void testFailure(Failure failure) throws Exception { | |
} | ||
b.append(failure.getDescription().getClassName()); | ||
|
||
final String methodName = failure.getDescription().getMethodName(); | ||
String methodName = failure.getDescription().getMethodName(); | ||
if (methodName != null) { | ||
// Method names only have spaces if used with -Dtests.iters where the seed is appended. | ||
// Here we strip out anything from the first space, leaving the real method name intact. | ||
methodName = methodName.split(" ")[0]; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think this is the case. For things like YAML tests the names very often have spaces. This would then cause those repro lines to be corrupted. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You're right, I had not considered parameterized tests. In fact, the seed is put into the same curly-braced section as parameters. |
||
// fallback to system property filter when tests contain "." | ||
if (methodName.contains(".") || isBwcTest) { | ||
b.append("\" -Dtests.method=\""); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this part also be merged?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
definitely not! removed