Skip to content

Commit e20f258

Browse files
author
Alan Christie
committed
- Unexpected section names are now errors
1 parent b3d9ed4 commit e20f258

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/groovy/PipelineTester.groovy

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,11 @@ class Tester {
178178
logTest(path, section)
179179
testsIgnored += 1
180180
info('OK (Ignored)')
181+
} else {
182+
separate()
183+
err("Unexpected section name ($section.key)" +
184+
" in the '${currentTestFilename}.test'")
185+
recordFailedTest(section_key_lower)
181186
}
182187

183188
}

0 commit comments

Comments
 (0)