File tree 3 files changed +6
-4
lines changed
scala3-coverage-excluded-files
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -78,10 +78,12 @@ instrumented or included in the coverage report.
78
78
You can also exclude files and file paths.
79
79
80
80
``` scala
81
- coverageExcludedFiles := " .*\\ /two\\ /GoodCoverage\. scala ;.*\\ /three\\ /.*"
81
+ coverageExcludedFiles := " .*\\ /two\\ /GoodCoverage;.*\\ /three\\ /.*"
82
82
```
83
83
84
- Note: This only works for Scala2. Right now Scala3 does not support
84
+ Note: The ` .scala ` file extension needs to be omitted from the filename, if one is given.
85
+
86
+ Note: These two options only work for Scala2. Right now Scala3 does not support
85
87
a way to exclude packages or files from being instrumented.
86
88
87
89
You can also mark sections of code with comments like:
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ scalaVersion := "2.13.6"
4
4
5
5
libraryDependencies += " org.scalameta" %% " munit" % " 0.7.29" % Test
6
6
7
- coverageExcludedFiles := " .*\\ /two\\ /GoodCoverage\\ .scala "
7
+ coverageExcludedFiles := " .*\\ /two\\ /GoodCoverage"
8
8
9
9
resolvers ++= {
10
10
if (sys.props.get(" plugin.version" ).exists(_.endsWith(" -SNAPSHOT" )))
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ scalaVersion := "3.2.0-RC1"
4
4
5
5
libraryDependencies += " org.scalameta" %% " munit" % " 0.7.29" % Test
6
6
7
- coverageExcludedFiles := " .*\\ /two\\ /GoodCoverage\\ .scala "
7
+ coverageExcludedFiles := " .*\\ /two\\ /GoodCoverage"
8
8
9
9
resolvers ++= {
10
10
if (sys.props.get(" plugin.version" ).exists(_.endsWith(" -SNAPSHOT" )))
You can’t perform that action at this time.
0 commit comments