We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a38300 commit 18cd360Copy full SHA for 18cd360
json-schema-validator/src/test/kotlin/io/openapiprocessor/jsonschema/validator/support/Draft.kt
@@ -96,11 +96,17 @@ fun draftSpec(
96
return JsonInstance(JsonPointer.empty(), instance)
97
}
98
99
+ fun createTestName(testPath: Path): String {
100
+ val path = testPath.toAbsolutePath().toString()
101
+ val draftPathIndex = path.indexOf(draftPath)
102
+ return path.substring(draftPathIndex + draftPath.length + 1)
103
+ }
104
+
105
Files.walk(root)
106
.filter { path -> !Files.isDirectory(path) }
107
.filter { path -> !excludes.contains(path.name) }
108
.forEach { path ->
- path.name - {
109
+ createTestName(path) - {
110
val suites = loadSuites(path)
111
112
for (suite in suites) {
0 commit comments