mirror of
https://github.com/ditkrg/simplecov-json.git
synced 2026-01-22 22:06:46 +00:00
omit groups: these render the entire source of the files and dramatically increases the size of coverage.json
This commit is contained in:
parent
0ff743fbd3
commit
e4d8b177b1
@ -15,7 +15,6 @@ class SimpleCov::Formatter::JSONFormatter
|
||||
coverage: coverage
|
||||
}
|
||||
end
|
||||
data[:groups] = result.groups
|
||||
data[:metrics] = {
|
||||
covered_percent: result.covered_percent,
|
||||
covered_strength: result.covered_strength,
|
||||
|
||||
@ -16,7 +16,6 @@ class TestSimpleCovHtml < Test::Unit::TestCase
|
||||
result.expects(:filenames).returns(['/lib/foo.rb', '/lib/bar.rb'])
|
||||
result.expects(:filenames).returns(['/lib/foo.rb', '/lib/bar.rb'])
|
||||
result.expects(:filenames).returns(['/lib/foo.rb', '/lib/bar.rb'])
|
||||
result.expects(:groups).returns(['controllers', 'models'])
|
||||
result.expects(:covered_percent).returns(73.33)
|
||||
result.expects(:covered_strength).returns(0.87)
|
||||
result.expects(:covered_lines).returns(11)
|
||||
@ -34,7 +33,6 @@ class TestSimpleCovHtml < Test::Unit::TestCase
|
||||
{'filename' => '/lib/foo.rb', 'coverage' => [1, nil, 0, 0, nil, 1, nil]},
|
||||
{'filename' => '/lib/bar.rb', 'coverage' => [nil, 1, nil, 1, 1, 1, 0, 0, nil, 1, nil]},
|
||||
],
|
||||
'groups' =>['controllers', 'models'],
|
||||
'metrics' => {
|
||||
'covered_percent' => 73.33,
|
||||
'covered_strength' => 0.87,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user