6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# File 'lib/bones/plugins/rcov.rb', line 6
def initialize_rcov
require 'rcov'
require 'rcov/rcovtask'
have?(:rcov) { true }
::Bones.config {
desc 'Configuration settings for the Rcov code coverage tool.'
rcov {
path 'rcov', :desc => " Path to the rcov executable.\n __\n\n dir 'coverage', :desc => <<-__\n Code coverage metrics will be written to this directory.\n __\n\n opts %w[--sort coverage -T], :desc => <<-__\n An array of command line options that will be passed to the rcov\n command when running your tests. See the Rcov help documentation\n either online or from the command line by running 'rcov --help'.\n __\n\n threshold 90.0, :desc => <<-__\n The threshold value (in percent) for coverage. If the actual\n coverage is not greater than or equal to this value, the verify task\n will raise an exception.\n __\n\n threshold_exact false, :desc => <<-__\n Require the threshold to be met exactly. By default this option is\n set to false.\n __\n }\n }\nrescue LoadError\n have?(:rcov) { false }\nend\n"
|