emma 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/emma-instrument-war +1 -1
- data/lib/emma/control.rb +10 -2
- data/lib/emma/version.rb +1 -1
- metadata +3 -3
data/bin/emma-instrument-war
CHANGED
data/lib/emma/control.rb
CHANGED
@@ -9,8 +9,14 @@ module Emma
|
|
9
9
|
@ec = opts[:coverage_file] || Tempfile.new("emma-coverage").path
|
10
10
|
end
|
11
11
|
|
12
|
-
def get
|
13
|
-
|
12
|
+
def get(opts = {})
|
13
|
+
merge = true
|
14
|
+
merge = opts[:merge] if opts.key? :merge
|
15
|
+
|
16
|
+
stop_collection = false
|
17
|
+
stop_collection = opts[:stop_collection] if opts.key? :stop_collection
|
18
|
+
|
19
|
+
emma "ctl", "-c", "coverage.get,#{@ec},#{merge},#{stop_collection}"
|
14
20
|
end
|
15
21
|
|
16
22
|
def report(opts = {})
|
@@ -24,6 +30,7 @@ module Emma
|
|
24
30
|
end
|
25
31
|
|
26
32
|
def instrument(paths, opts = {})
|
33
|
+
paths = Array(paths)
|
27
34
|
mode = opts[:mode] || 'fullcopy'
|
28
35
|
filter = opts[:filter] || '*'
|
29
36
|
|
@@ -34,6 +41,7 @@ module Emma
|
|
34
41
|
'-outfile', @em,
|
35
42
|
'-merge', 'yes',
|
36
43
|
'-filter', filter,
|
44
|
+
'-verbose',
|
37
45
|
*inputs
|
38
46
|
end
|
39
47
|
|
data/lib/emma/version.rb
CHANGED
metadata
CHANGED