Module | Buildr::Cobertura |
In: |
lib/buildr/java/cobertura.rb
(CVS)
|
Provides the cobertura:html, cobertura:xml and cobertura:check tasks. Require explicitly using require "buildr/cobertura".
You can generate cobertura reports for a single project using the project name as prefix:
project_name:cobertura:html
You can also specify which classes to include/exclude from instrumentation by passing a class name regexp to the cobertura.include or cobertura.exclude methods.
define 'someModule' do cobertura.include 'some.package.*' cobertura.include /some.(foo|bar).*/ cobertura.exclude 'some.foo.util.SimpleUtil' cobertura.exclude /*.Const(ants)?/i end
VERSION | = | '1.9.4.1' |
REQUIRES | = | ArtifactNamespace.for(self).tap do |ns| ns.cobertura! "net.sourceforge.cobertura:cobertura:jar:#{version}", '>=1.9' |