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
Port coverage filter options for packages and files (#19727)
- 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
+
valcoverageExcludeClasslikes:Setting[List[String]] =MultiStringSetting("-coverage-exclude-classlikes", "packages, classes and modules", "List of regexes for packages, classes and modules to exclude from coverage.", aliases =List("--coverage-exclude-classlikes"))
131
+
valcoverageExcludeFiles:Setting[List[String]] =MultiStringSetting("-coverage-exclude-files", "files", "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