We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8377d4 commit ca145c3Copy full SHA for ca145c3
save-common/src/commonMain/kotlin/org/cqfn/save/core/plugin/Plugin.kt
@@ -61,9 +61,11 @@ abstract class Plugin(
61
fun discoverTestFiles(root: Path): Sequence<List<Path>> {
62
val rawTestFiles = rawDiscoverTestFiles(root.resourceDirectories())
63
return if (testFiles.isNotEmpty()) {
64
- rawTestFiles.filter { paths ->
+ rawTestFiles.filter { resourcesGroup ->
65
// test can be specified by the name of one of it's files
66
- paths.any { it.name in testFiles }
+ resourcesGroup.any { path ->
67
+ testFiles.any { it in path.toString() }
68
+ }
69
}
70
} else {
71
rawTestFiles
0 commit comments