Skip to content

Conversation

@Johnlon
Copy link

@Johnlon Johnlon commented Sep 8, 2013

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.

<scct.excluded.paths.regex>src/main/scala/.*Excluded.*/morepath,other/excluded/path/regex</scct.excluded.paths.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.

 example
	<configuration>
					<systemPropertyVariables>
						<scct.debug>false</scct.debug>
						<scct.project.name>${project.name}</scct.project.name>
						<scct.coverage.file>${project.build.outputDirectory}/coverage.data</scct.coverage.file>
						<scct.report.dir>${project.build.directory}/coverage-report</scct.report.dir>
						<scct.source.dir>${project.build.sourceDirectory}</scct.source.dir>
						<scct.excluded.paths.regex>src/main/scala/.*Excluded,other/excluded/path/regex</scct.excluded.paths.regex>
					</systemPropertyVariables>
				</configuration>
@Johnlon Johnlon mentioned this pull request Sep 8, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants