Skip to content

Commit 32e7284

Browse files
committed
warn a missing file with its path
1 parent 006ed69 commit 32e7284

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

openapi-processor-test/src/main/groovy/io/openapiprocessor/test/TestFilesNative.groovy

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,12 @@ class TestFilesNative implements TestFiles {
6363

6464
@Override
6565
Path getSourcePath(TestSet testSet, String path) {
66-
return Paths.get(resource.getResourceUrl("/tests/${testSet.name}/${testSet.expected}/$path").toURI())
66+
def testFile = "/tests/${testSet.name}/${testSet.expected}/$path"
67+
def testFileResource = resource.getResourceUrl(testFile)
68+
if (!testFileResource) {
69+
println("ERROR: missing file '$testFile'!")
70+
}
71+
return Paths.get(testFileResource.toURI())
6772
}
6873

6974
@Override

0 commit comments

Comments
 (0)