Skip to content

Commit

Permalink
Format test name in output consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
findepi committed Mar 4, 2022
1 parent 1de0bb9 commit a86e13b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ private static String getName(ITestClass testClass)

private static String getName(IInvokedMethod method)
{
return format("%s::%s", method.getTestMethod().getTestClass().getName(), method.getTestMethod().getMethodName());
// See ProgressLoggingListener.formatTestName
return format("%s.%s", method.getTestMethod().getTestClass().getName(), method.getTestMethod().getMethodName());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ public void onFinish(ITestContext context)

private String formatTestName(ITestResult testCase)
{
// See LogTestDurationListener.getName
return format("%s.%s%s", testCase.getTestClass().getName(), testCase.getName(), formatTestParameters(testCase));
}

Expand Down

0 comments on commit a86e13b

Please sign in to comment.