Skip to content

Commit

Permalink
Merge pull request #95 from jdaugherty/5.0.x
Browse files Browse the repository at this point in the history
Fix test name to include specification & feature name
  • Loading branch information
jdaugherty authored Dec 10, 2024
2 parents 082e20c + 522da24 commit d268584
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 d268584

Please sign in to comment.