File tree 1 file changed +6
-4
lines changed
compiler/test/dotty/tools/dotc/coverage
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -41,13 +41,15 @@ class CoverageTests:
41
41
lines
42
42
end fixWindowsPaths
43
43
44
- Files .walk(dir).filter(scalaFile.matches).forEach(p => {
45
- val path = p
44
+ def runOnFile (p : Path ): Boolean =
45
+ scalaFile.matches(p) &&
46
+ (Properties .testsFilter.isEmpty || Properties .testsFilter.exists(p.toString.contains))
47
+
48
+ Files .walk(dir).filter(runOnFile).forEach(path => {
46
49
val fileName = path.getFileName.toString.stripSuffix(" .scala" )
47
50
val targetDir = computeCoverageInTmp(path, dir, run)
48
51
val targetFile = targetDir.resolve(s " scoverage.coverage " )
49
- val expectFile = p.resolveSibling(s " $fileName.scoverage.check " )
50
-
52
+ val expectFile = path.resolveSibling(s " $fileName.scoverage.check " )
51
53
if updateCheckFiles then
52
54
Files .copy(targetFile, expectFile, StandardCopyOption .REPLACE_EXISTING )
53
55
else
You can’t perform that action at this time.
0 commit comments