Class: Buildr::Emma::EmmaConfig
Overview
:nodoc:
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#exclude(*classPatterns) ⇒ Object
:call-seq: project.emma.exclude(*classPatterns).
- #excludes ⇒ Object
-
#include(*classPatterns) ⇒ Object
:call-seq: project.emma.include(*classPatterns).
- #includes ⇒ Object
-
#initialize(project) ⇒ EmmaConfig
constructor
A new instance of EmmaConfig.
- #report_to(format) ⇒ Object
- #sources ⇒ Object
Constructor Details
#initialize(project) ⇒ EmmaConfig
Returns a new instance of EmmaConfig.
74 75 76 |
# File 'lib/buildr/java/emma.rb', line 74 def initialize(project) @project = project end |
Instance Attribute Details
#coverage_file ⇒ Object
83 84 85 |
# File 'lib/buildr/java/emma.rb', line 83 def coverage_file @coverage_file ||= File.join(report_dir, 'coverage.ec') end |
#instrumented_dir ⇒ Object
91 92 93 |
# File 'lib/buildr/java/emma.rb', line 91 def instrumented_dir @instrumented_dir ||= project.path_to(:target, :instrumented, :classes) end |
#metadata_file ⇒ Object
87 88 89 |
# File 'lib/buildr/java/emma.rb', line 87 def @metadata_file ||= File.join(report_dir, 'coverage.em') end |
Instance Method Details
#exclude(*classPatterns) ⇒ Object
:call-seq:
project.emma.exclude(*classPatterns)
118 119 120 121 |
# File 'lib/buildr/java/emma.rb', line 118 def exclude(*classPatterns) excludes.push(*classPatterns) self end |
#excludes ⇒ Object
123 124 125 |
# File 'lib/buildr/java/emma.rb', line 123 def excludes @excludeClasses ||= [] end |
#include(*classPatterns) ⇒ Object
:call-seq:
project.emma.include(*classPatterns)
106 107 108 109 |
# File 'lib/buildr/java/emma.rb', line 106 def include(*classPatterns) includes.push(*classPatterns) self end |
#includes ⇒ Object
111 112 113 |
# File 'lib/buildr/java/emma.rb', line 111 def includes @includeClasses ||= [] end |
#report_to(format) ⇒ Object
99 100 101 |
# File 'lib/buildr/java/emma.rb', line 99 def report_to format report_dir end |