You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add `-coverage-exclude-packages` option that excludes packages and classes
from generating coverage
- Add `-coverage-exclude-files` option that excludes files from
generating coverage
Copy file name to clipboardExpand all lines: compiler/src/dotty/tools/dotc/config/ScalaSettings.scala
+2
Original file line number
Diff line number
Diff line change
@@ -127,6 +127,8 @@ trait CommonScalaSettings:
127
127
128
128
/* Coverage settings */
129
129
valcoverageOutputDir=PathSetting("-coverage-out", "Destination for coverage classfiles and instrumentation data.", "", aliases =List("--coverage-out"))
130
+
valcoverageExcludePackages:Setting[List[String]] =MultiStringSetting("-coverage-exclude-packages", "packages", "Semicolon separated list of regexes for packages to exclude from coverage.", aliases =List("--coverage-exclude-packages"))
131
+
valcoverageExcludeFiles:Setting[List[String]] =MultiStringSetting("-coverage-exclude-files", "files", "Semicolon separated list of regexes for files to exclude from coverage.", aliases =List("--coverage-exclude-files"))
130
132
131
133
/* Other settings */
132
134
valencoding:Setting[String] =StringSetting("-encoding", "encoding", "Specify character encoding used by source files.", Properties.sourceEncoding, aliases =List("--encoding"))
0 commit comments