File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
scala3-coverage-excluded-files Expand file tree Collapse file tree 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.
7878You can also exclude files and file paths.
7979
8080``` scala
81- coverageExcludedFiles := " .*\\ /two\\ /GoodCoverage\. scala ;.*\\ /three\\ /.*"
81+ coverageExcludedFiles := " .*\\ /two\\ /GoodCoverage;.*\\ /three\\ /.*"
8282```
8383
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
8587a way to exclude packages or files from being instrumented.
8688
8789You 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"
44
55libraryDependencies += " org.scalameta" %% " munit" % " 0.7.29" % Test
66
7- coverageExcludedFiles := " .*\\ /two\\ /GoodCoverage\\ .scala "
7+ coverageExcludedFiles := " .*\\ /two\\ /GoodCoverage"
88
99resolvers ++= {
1010 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"
44
55libraryDependencies += " org.scalameta" %% " munit" % " 0.7.29" % Test
66
7- coverageExcludedFiles := " .*\\ /two\\ /GoodCoverage\\ .scala "
7+ coverageExcludedFiles := " .*\\ /two\\ /GoodCoverage"
88
99resolvers ++= {
1010 if (sys.props.get(" plugin.version" ).exists(_.endsWith(" -SNAPSHOT" )))
You can’t perform that action at this time.
0 commit comments