Skip to content

Commit ca145c3

Browse files
authored
Running individual tests doesn't work as expected (#171)
* Running individual tests doesn't work as expected What's done: * Check for the full path to the file Closes #137
1 parent e8377d4 commit ca145c3

File tree

1 file changed

+4
-2
lines changed
  • save-common/src/commonMain/kotlin/org/cqfn/save/core/plugin

1 file changed

+4
-2
lines changed

save-common/src/commonMain/kotlin/org/cqfn/save/core/plugin/Plugin.kt

+4-2
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,11 @@ abstract class Plugin(
6161
fun discoverTestFiles(root: Path): Sequence<List<Path>> {
6262
val rawTestFiles = rawDiscoverTestFiles(root.resourceDirectories())
6363
return if (testFiles.isNotEmpty()) {
64-
rawTestFiles.filter { paths ->
64+
rawTestFiles.filter { resourcesGroup ->
6565
// test can be specified by the name of one of it's files
66-
paths.any { it.name in testFiles }
66+
resourcesGroup.any { path ->
67+
testFiles.any { it in path.toString() }
68+
}
6769
}
6870
} else {
6971
rawTestFiles

0 commit comments

Comments
 (0)