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
[Cherry-picked c1f2022]
Copy file name to clipboardExpand all lines: compiler/src/dotty/tools/dotc/config/ScalaSettings.scala
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -124,6 +124,8 @@ trait CommonScalaSettings:
124
124
125
125
/* Coverage settings */
126
126
valcoverageOutputDir=PathSetting("-coverage-out", "Destination for coverage classfiles and instrumentation data.", "", aliases =List("--coverage-out"))
127
+
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"))
128
+
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"))
127
129
128
130
/* Other settings */
129
131
valencoding:Setting[String] =StringSetting("-encoding", "encoding", "Specify character encoding used by source files.", Properties.sourceEncoding, aliases =List("--encoding"))
0 commit comments