Lt. Templeton Peck
04/23/2026, 5:53 PMval FailedEventsDebugSpec by testSuite {
ResourceSupport.findAllResourcesInPackage("failed-events", of { it.name.endsWith(".json") })
.associate { resource ->
Path(resource.name).name to resource.inputStream.readAllBytes().decodeToString()
}
.forEach { (pathName, event) -> test(pathName) { true shouldBe true } }
}
As the directory is usually empty we get the following error during test discovery
java.lang.IllegalStateException: does not contain any child tests or test suites.
Please add at least one test or test suite to this test suite, or remove it.I've tried
TestConfig.disable() at the test and testSuite level which doesn't work. I can add test("ignore me", testConfig = TestConfig.disable()) { } into the testSuite to get it to run which is a bit or ugly or I could just comment out the test until its needed. Have I missed a simpler config option?Oliver.O
04/23/2026, 6:00 PMtestConfig = TestConfig.addPermits(TestConfig.Permit.SuiteWithoutChildren)
to the FailedEventsDebugSpec test suite.Oliver.O
04/23/2026, 8:12 PMjava.lang.IllegalStateException: TestSuite('suite1') does not contain any child tests or test suites.
Please either
- add at least one test or test suite to TestSuite('suite1'),
- remove TestSuite('suite1'), or
- use 'testConfig = TestConfig.addPermits(TestConfig.Permit.SuiteWithoutChildren)' on TestSuite('suite1').Lt. Templeton Peck
04/23/2026, 9:00 PM