Skip to content

Commit

Permalink
Fix test name to include specification & feature name
Browse files Browse the repository at this point in the history
  • Loading branch information
jdaugherty committed Dec 9, 2024
1 parent 6cd31c5 commit f945fe2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ class ContainerGebTestDescription implements TestDescription {
String filesystemFriendlyName

ContainerGebTestDescription(IterationInfo testInfo) {
testId = testInfo.displayName

testId = [testInfo.feature.spec.displayName, testInfo.feature.displayName, testInfo.displayName == testInfo.feature.displayName ? null : testInfo.displayName, testInfo.displayName == testInfo.feature.displayName ? null : testInfo.iterationIndex].findAll{ it }.join(" ")
String safeName = testId.replaceAll('\\W+', '_')
filesystemFriendlyName = safeName
}
Expand Down

0 comments on commit f945fe2

Please sign in to comment.