sqality / scct

Scala Code Coverage Tool
Apache License 2.0
67 stars 7 forks source link

Added feature to exclude files from coverage analysis #3

Closed 0xRoch closed 11 years ago

0xRoch commented 11 years ago

@Johnlon

cc---

New system property provides a comma separated list of regex's for the paths to ignore in coverage. Files matching these patterns are excluded from the final coverage reports.

src/main/scala/._Excluded._/morepath,other/excluded/path/regex I have tested against my own project and it works for me. Any matching files are dropped entirely from the reports, However, I have not been able to run any of the tests in the scct package as I keep getting an errors, presumably to do with my runtime env like the one below. test-fail: Scala compiler is probably not finding scala jars (catch-22). Fix paths in InstrumentationSpec:createSettings.
0xRoch commented 11 years ago

@Johnlon This feature is now published on the 0.3 Snapshot : "com.github.scct" % "sbt-scct" % "0.3-SNAPSHOT"

0xRoch commented 11 years ago

also added to sbt-scct : https://github.com/SCCT/sbt-scct/pull/14