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 10, 2024
1 parent 6cd31c5 commit 522da24
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ 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 ? testInfo.displayName : null,
testInfo.displayName != testInfo.feature.displayName ? testInfo.iterationIndex : null
].findAll(/* Remove nulls */).join(' ')

String safeName = testId.replaceAll('\\W+', '_')
filesystemFriendlyName = safeName
}
Expand Down

0 comments on commit 522da24

Please sign in to comment.