Skip to content

Commit

Permalink
Fixed an issue with some tests failing when generating uncompressed r…
Browse files Browse the repository at this point in the history
…eport names
  • Loading branch information
wakaleo committed Dec 7, 2016
1 parent dd8aaa3 commit e30ae07
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ public ReportNamer(ReportType type, boolean compressedFilename) {
public String getNormalizedTestNameFor(final TestOutcome testOutcome) {
String testName = getBaseTestNameFor(testOutcome);
String testNameWithoutIndex = stripIndexesFrom(testName);
return normalizedVersionOf(testNameWithoutIndex);
// appendSuffixTo(Digest.ofTextValue(testNameWithoutIndex));
return underscore(normalizedVersionOf(testNameWithoutIndex));
}

private String getBaseTestNameFor(TestOutcome testOutcome) {
Expand All @@ -52,7 +51,7 @@ private String getBaseTestNameFor(TestOutcome testOutcome) {
testName = underscore(testOutcome.getPath());
}
String scenarioName = underscore(testOutcome.getQualifiedMethodName());
return pathFrom(testOutcome) + withNoIssueNumbers(appendToIfNotNull(testName, scenarioName));
return pathFrom(testOutcome) + underscore(withNoIssueNumbers(appendToIfNotNull(testName, scenarioName)));
}


Expand Down

0 comments on commit e30ae07

Please sign in to comment.