coverband 2.0.3 → 3.0.0.alpha
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -1
- data/.rubocop.yml +73 -0
- data/.travis.yml +0 -3
- data/README.md +3 -3
- data/changes.md +65 -49
- data/coverband.gemspec +1 -1
- data/lib/coverband.rb +9 -6
- data/lib/coverband/adapters/base.rb +22 -2
- data/lib/coverband/adapters/file_store.rb +11 -11
- data/lib/coverband/adapters/redis_store.rb +22 -57
- data/lib/coverband/collectors/coverage.rb +57 -53
- data/lib/coverband/configuration.rb +6 -14
- data/lib/coverband/integrations/background.rb +7 -0
- data/lib/coverband/{middleware.rb → integrations/middleware.rb} +1 -3
- data/lib/coverband/reporters/base.rb +37 -82
- data/lib/coverband/reporters/console_report.rb +3 -0
- data/lib/coverband/reporters/simple_cov_report.rb +4 -3
- data/lib/coverband/reporters/web.rb +38 -35
- data/lib/coverband/utils/s3_report_writer.rb +59 -0
- data/lib/coverband/{tasks.rb → utils/tasks.rb} +0 -0
- data/lib/coverband/version.rb +1 -1
- data/test/benchmarks/benchmark.rake +3 -3
- data/test/test_helper.rb +18 -17
- data/test/unit/adapters_base_test.rb +29 -0
- data/test/unit/adapters_file_store_test.rb +2 -2
- data/test/unit/adapters_redis_store_test.rb +14 -51
- data/test/unit/collectors_coverage_test.rb +3 -107
- data/test/unit/configuration_test.rb +2 -9
- data/test/unit/full_stack_test.rb +47 -0
- data/test/unit/middleware_test.rb +21 -57
- data/test/unit/reports_base_test.rb +12 -71
- data/test/unit/reports_console_test.rb +9 -22
- data/test/unit/reports_simple_cov_test.rb +3 -37
- data/test/unit/reports_web_test.rb +4 -0
- data/test/unit/{s3_report_writer_test.rb → utils_s3_report_writer_test.rb} +1 -1
- metadata +29 -18
- data/lib/coverband/adapters/memory_cache_store.rb +0 -53
- data/lib/coverband/collectors/base.rb +0 -126
- data/lib/coverband/collectors/trace.rb +0 -122
- data/lib/coverband/s3_report_writer.rb +0 -49
- data/test/unit/adapters_memory_cache_store_test.rb +0 -66
- data/test/unit/collectors_base_test.rb +0 -104
- data/test/unit/collectors_trace_test.rb +0 -106
@@ -1,7 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require File.expand_path('../test_helper', File.dirname(__FILE__))
|
4
|
-
require File.expand_path('../fake_app/basic_rack', File.dirname(__FILE__))
|
5
4
|
require 'rack'
|
6
5
|
|
7
6
|
class MiddlewareTest < Test::Unit::TestCase
|
@@ -9,62 +8,51 @@ class MiddlewareTest < Test::Unit::TestCase
|
|
9
8
|
|
10
9
|
def setup
|
11
10
|
Coverband.configure do |config|
|
12
|
-
config.
|
13
|
-
config.store = nil
|
14
|
-
config.collector = 'trace'
|
15
|
-
config.store = Coverband::Adapters::RedisStore.new(Redis.new)
|
11
|
+
config.store = Coverband::Adapters::RedisStore.new(Redis.new)
|
16
12
|
end
|
17
13
|
end
|
18
14
|
|
19
15
|
test 'call app' do
|
20
16
|
request = Rack::MockRequest.env_for('/anything.json')
|
21
|
-
Coverband::Collectors::
|
17
|
+
Coverband::Collectors::Coverage.instance.reset_instance
|
22
18
|
middleware = Coverband::Middleware.new(fake_app)
|
23
19
|
results = middleware.call(request)
|
24
20
|
assert_equal '/anything.json', results.last
|
25
21
|
end
|
26
22
|
|
27
23
|
test 'pass all rack lint checks' do
|
28
|
-
Coverband::Collectors::
|
24
|
+
Coverband::Collectors::Coverage.instance.reset_instance
|
29
25
|
app = Rack::Lint.new(Coverband::Middleware.new(fake_app))
|
30
26
|
env = Rack::MockRequest.env_for('/hello')
|
31
27
|
app.call(env)
|
32
28
|
end
|
33
29
|
|
34
|
-
test '
|
35
|
-
request = Rack::MockRequest.env_for('/anything.json')
|
36
|
-
Coverband::Collectors::Base.instance.reset_instance
|
37
|
-
middleware = Coverband::Middleware.new(fake_app)
|
38
|
-
assert_equal false, Coverband::Collectors::Base.instance.instance_variable_get('@enabled')
|
39
|
-
Coverband::Collectors::Base.instance.instance_variable_set('@sample_percentage', 100.0)
|
40
|
-
middleware.call(request)
|
41
|
-
assert_equal true, Coverband::Collectors::Base.instance.instance_variable_get('@enabled')
|
42
|
-
end
|
43
|
-
|
44
|
-
test 'never be enabled with sample percentage of 0' do
|
30
|
+
test 'never be report coverage with reporting_frequency of 0' do
|
45
31
|
request = Rack::MockRequest.env_for('/anything.json')
|
46
|
-
Coverband::Collectors::
|
32
|
+
Coverband::Collectors::Coverage.instance.reset_instance
|
33
|
+
collector = Coverband::Collectors::Coverage.instance
|
34
|
+
collector.instance_variable_set('@reporting_frequency', 0.0)
|
47
35
|
middleware = Coverband::Middleware.new(fake_app)
|
48
|
-
|
49
|
-
|
36
|
+
store = Coverband::Collectors::Coverage.instance.instance_variable_get('@store')
|
37
|
+
store.expects(:save_report).never
|
50
38
|
middleware.call(request)
|
51
|
-
assert_equal false, Coverband::Collectors::Base.instance.instance_variable_get('@enabled')
|
52
39
|
end
|
53
40
|
|
54
|
-
test 'always
|
41
|
+
test 'always be enabled with sample percentage of 100' do
|
55
42
|
request = Rack::MockRequest.env_for('/anything.json')
|
56
|
-
Coverband::Collectors::
|
43
|
+
Coverband::Collectors::Coverage.instance.reset_instance
|
44
|
+
collector = Coverband::Collectors::Coverage.instance
|
45
|
+
collector.instance_variable_set('@reporting_frequency', 100.0)
|
57
46
|
middleware = Coverband::Middleware.new(fake_app)
|
58
|
-
|
59
|
-
|
47
|
+
store = Coverband::Collectors::Coverage.instance.instance_variable_get('@store')
|
48
|
+
store.expects(:save_report).once
|
60
49
|
middleware.call(request)
|
61
|
-
assert_equal true, Coverband::Collectors::Base.instance.instance_variable_get('@enabled')
|
62
50
|
end
|
63
51
|
|
64
52
|
test 'reports coverage when an error is raised' do
|
65
53
|
request = Rack::MockRequest.env_for('/anything.json')
|
66
|
-
Coverband::Collectors::
|
67
|
-
Coverband::Collectors::
|
54
|
+
Coverband::Collectors::Coverage.instance.reset_instance
|
55
|
+
Coverband::Collectors::Coverage.instance.expects(:report_coverage).once
|
68
56
|
middleware = Coverband::Middleware.new(fake_app_raise_error)
|
69
57
|
begin
|
70
58
|
middleware.call(request)
|
@@ -73,39 +61,15 @@ class MiddlewareTest < Test::Unit::TestCase
|
|
73
61
|
end
|
74
62
|
end
|
75
63
|
|
76
|
-
test 'always report coverage when sampling' do
|
77
|
-
request = Rack::MockRequest.env_for('/anything.json')
|
78
|
-
Coverband::Collectors::Base.instance.reset_instance
|
79
|
-
middleware = Coverband::Middleware.new(fake_app_with_lines)
|
80
|
-
assert_equal false, Coverband::Collectors::Base.instance.instance_variable_get('@enabled')
|
81
|
-
Coverband::Collectors::Base.instance.instance_variable_set('@sample_percentage', 100.0)
|
82
|
-
fake_redis = Redis.new
|
83
|
-
redis_store = Coverband::Adapters::RedisStore.new(fake_redis)
|
84
|
-
redis_store.clear!
|
85
|
-
Coverband::Collectors::Base.instance.reset_instance
|
86
|
-
Coverband::Collectors::Base.instance.instance_variable_set('@store', redis_store)
|
87
|
-
fake_redis.expects(:sadd).at_least_once
|
88
|
-
fake_redis.expects(:mapped_hmset).at_least_once
|
89
|
-
fake_redis.expects(:mapped_hmset).at_least_once.with("#{BASE_KEY}.#{basic_rack_ruby_file}", '7' => 1)
|
90
|
-
middleware.call(request)
|
91
|
-
assert_equal true, Coverband::Collectors::Base.instance.instance_variable_get('@enabled')
|
92
|
-
end
|
93
|
-
|
94
64
|
private
|
95
65
|
|
96
66
|
def fake_app
|
97
|
-
@fake_app ||=
|
67
|
+
@fake_app ||= lambda do |env|
|
68
|
+
[200, { 'Content-Type' => 'text/plain' }, env['PATH_INFO']]
|
69
|
+
end
|
98
70
|
end
|
99
71
|
|
100
72
|
def fake_app_raise_error
|
101
|
-
@fake_app_raise_error ||= -> { raise '
|
102
|
-
end
|
103
|
-
|
104
|
-
def fake_app_with_lines
|
105
|
-
@fake_app_with_lines ||= ::HelloWorld.new
|
106
|
-
end
|
107
|
-
|
108
|
-
def basic_rack_ruby_file
|
109
|
-
File.expand_path('../fake_app/basic_rack.rb', File.dirname(__FILE__))
|
73
|
+
@fake_app_raise_error ||= -> { raise 'hell' }
|
110
74
|
end
|
111
75
|
end
|
@@ -57,54 +57,6 @@ class ReportsBaseTest < Test::Unit::TestCase
|
|
57
57
|
assert_equal '/full/remote_app/path/is/a/path.rb', Coverband::Reporters::Base.filename_from_key(key, roots)
|
58
58
|
end
|
59
59
|
|
60
|
-
test 'line_hash gets correct hash entry for a line key' do
|
61
|
-
@fake_redis = fake_redis
|
62
|
-
store = Coverband::Adapters::RedisStore.new(@fake_redis)
|
63
|
-
|
64
|
-
Coverband.configure do |config|
|
65
|
-
config.redis = @fake_redis
|
66
|
-
config.reporter = 'std_out'
|
67
|
-
config.root = '/full/remote_app/path'
|
68
|
-
end
|
69
|
-
|
70
|
-
key = '/full/remote_app/path/is/a/path.rb'
|
71
|
-
# the code takes config.root expands and adds a '/'
|
72
|
-
roots = ['/app/', '/full/remote_app/path/']
|
73
|
-
|
74
|
-
lines_hit = [1, 3, 6]
|
75
|
-
store.stubs(:covered_lines_for_file).returns(lines_hit)
|
76
|
-
# expects to show hit counts on 1,3,6
|
77
|
-
expected = { '/full/remote_app/path/is/a/path.rb' => [1, nil, 1, nil, nil, 1] }
|
78
|
-
File.stubs(:exist?).returns(true)
|
79
|
-
File.stubs(:foreach).returns(['line 1', 'line2', 'line3', 'line4', 'line5', 'line6'])
|
80
|
-
|
81
|
-
assert_equal expected, Coverband::Reporters::Base.line_hash(store, key, roots)
|
82
|
-
end
|
83
|
-
|
84
|
-
test 'line_hash adjusts relative paths' do
|
85
|
-
@fake_redis = fake_redis
|
86
|
-
store = Coverband::Adapters::RedisStore.new(@fake_redis)
|
87
|
-
|
88
|
-
Coverband.configure do |config|
|
89
|
-
config.redis = @fake_redis
|
90
|
-
config.reporter = 'std_out'
|
91
|
-
config.root = '/full/remote_app/path'
|
92
|
-
end
|
93
|
-
|
94
|
-
key = './is/a/path.rb'
|
95
|
-
# the code takes config.root expands and adds a '/'
|
96
|
-
roots = ['/app/', '/full/remote_app/path/']
|
97
|
-
|
98
|
-
lines_hit = [1, 3, 6]
|
99
|
-
store.stubs(:covered_lines_for_file).returns(lines_hit)
|
100
|
-
# expects to show hit counts on 1,3,6
|
101
|
-
expected = { '/full/remote_app/path/is/a/path.rb' => [1, nil, 1, nil, nil, 1] }
|
102
|
-
File.stubs(:exist?).returns(true)
|
103
|
-
File.stubs(:foreach).returns(['line 1', 'line2', 'line3', 'line4', 'line5', 'line6'])
|
104
|
-
|
105
|
-
assert_equal expected, Coverband::Reporters::Base.line_hash(store, key, roots)
|
106
|
-
end
|
107
|
-
|
108
60
|
test '#merge_arrays basic merge preserves order and counts' do
|
109
61
|
first = [0, 0, 1, 0, 1]
|
110
62
|
second = [nil, 0, 1, 0, 0]
|
@@ -121,46 +73,35 @@ class ReportsBaseTest < Test::Unit::TestCase
|
|
121
73
|
assert_equal expects, Coverband::Reporters::Base.merge_arrays(first, second)
|
122
74
|
end
|
123
75
|
|
124
|
-
test '#
|
125
|
-
first =
|
126
|
-
second =
|
127
|
-
expects =
|
76
|
+
test '#merge_arrays basic merge preserves nils' do
|
77
|
+
first = [0, 1, 2, nil, nil, nil]
|
78
|
+
second = [0, 1, 2, nil, 0, 1, 2]
|
79
|
+
expects = [0, 2, 4, nil, 0, 1, 2]
|
128
80
|
|
129
|
-
assert_equal expects, Coverband::Reporters::Base.
|
130
|
-
end
|
131
|
-
|
132
|
-
test '#merge_existing_coverage mismatched' do
|
133
|
-
first = { 'file.rb' => [0, 1, 2, nil, nil, nil] }
|
134
|
-
second = { 'diff.rb' => [0, 1, 2, nil, 0, 1, 2] }
|
135
|
-
expects = { 'file.rb' => [0, 1, 2, nil, nil, nil],
|
136
|
-
'diff.rb' => [0, 1, 2, nil, 0, 1, 2] }
|
137
|
-
|
138
|
-
assert_equal expects, Coverband::Reporters::Base.merge_existing_coverage(first, second)
|
81
|
+
assert_equal expects, Coverband::Reporters::Base.merge_arrays(first, second)
|
139
82
|
end
|
140
83
|
|
141
84
|
test "#get_current_scov_data_imp doesn't ignore folders with default ignore keys" do
|
142
|
-
@
|
143
|
-
store = Coverband::Adapters::RedisStore.new(@
|
85
|
+
@redis = Redis.new
|
86
|
+
store = Coverband::Adapters::RedisStore.new(@redis)
|
87
|
+
store.clear!
|
144
88
|
|
145
89
|
Coverband.configure do |config|
|
146
|
-
config.redis = @fake_redis
|
147
90
|
config.reporter = 'std_out'
|
148
|
-
config.ignore = %w
|
91
|
+
config.ignore = %w(vendor .erb$ .slim$)
|
149
92
|
config.root = '/full/remote_app/path'
|
93
|
+
config.store = store
|
150
94
|
end
|
151
95
|
|
152
96
|
key = '/a_path/that_has_erb_in/thepath.rb'
|
153
97
|
roots = ['/app/', '/full/remote_app/path/']
|
154
98
|
|
155
99
|
lines_hit = [1, 3, 6]
|
156
|
-
store.stubs(:
|
157
|
-
|
158
|
-
expected = { '/a_path/that_has_erb_in/thepath.rb' => [1, nil, 1, nil, nil, 1] }
|
100
|
+
store.stubs(:coverage).returns(key => lines_hit)
|
101
|
+
expected = { key => [1, 3, 6] }
|
159
102
|
File.stubs(:exist?).returns(true)
|
160
103
|
File.stubs(:foreach).returns(['line 1', 'line2', 'line3', 'line4', 'line5', 'line6'])
|
161
104
|
|
162
|
-
# assert_equal expected, Coverband::Reporters::Base.line_hash(store, key, roots)
|
163
|
-
store.expects(:covered_files).returns([key])
|
164
105
|
assert_equal expected, Coverband::Reporters::Base.get_current_scov_data_imp(store, roots)
|
165
106
|
end
|
166
107
|
end
|
@@ -7,37 +7,24 @@ class SimpleCovReportTest < Test::Unit::TestCase
|
|
7
7
|
|
8
8
|
def setup
|
9
9
|
@redis = Redis.new
|
10
|
-
@redis.flushdb
|
11
10
|
@store = Coverband::Adapters::RedisStore.new(@redis)
|
12
|
-
|
13
|
-
|
14
|
-
def example_hash
|
15
|
-
{'1' => '1', '2' => '2'}
|
16
|
-
end
|
17
|
-
|
18
|
-
def combined_report
|
19
|
-
{
|
20
|
-
"#{BASE_KEY}.test/unit/dog.rb" => {
|
21
|
-
new: example_hash,
|
22
|
-
existing: {}
|
23
|
-
}
|
24
|
-
}
|
11
|
+
@store.clear!
|
25
12
|
end
|
26
13
|
|
27
14
|
test 'report data' do
|
28
15
|
Coverband.configure do |config|
|
29
|
-
config.
|
30
|
-
config.
|
31
|
-
config.
|
16
|
+
config.reporter = 'std_out'
|
17
|
+
config.store = @store
|
18
|
+
config.reporting_frequency = 100.0
|
32
19
|
end
|
33
20
|
Coverband.configuration.logger.stubs('info')
|
34
|
-
Coverband::Reporters::ConsoleReport
|
35
|
-
|
36
|
-
|
37
|
-
@store.send(:
|
21
|
+
Coverband::Reporters::ConsoleReport
|
22
|
+
.expects(:current_root)
|
23
|
+
.returns('app_path')
|
24
|
+
@store.send(:save_report, basic_coverage)
|
38
25
|
|
39
26
|
report = Coverband::Reporters::ConsoleReport.report(@store)
|
40
|
-
expected = {
|
27
|
+
expected = { 'app_path/dog.rb' => [0, 1, 2] }
|
41
28
|
assert_equal(expected, report)
|
42
29
|
end
|
43
30
|
end
|
@@ -7,12 +7,8 @@ class ReportsSimpleCovTest < Test::Unit::TestCase
|
|
7
7
|
|
8
8
|
def setup
|
9
9
|
@redis = Redis.new
|
10
|
-
@redis.flushdb
|
11
10
|
@store = Coverband::Adapters::RedisStore.new(@redis)
|
12
|
-
|
13
|
-
|
14
|
-
def example_hash
|
15
|
-
{'1' => '1', '2' => '2'}
|
11
|
+
@store.clear!
|
16
12
|
end
|
17
13
|
|
18
14
|
def combined_report
|
@@ -26,16 +22,13 @@ class ReportsSimpleCovTest < Test::Unit::TestCase
|
|
26
22
|
|
27
23
|
test 'generate scov report' do
|
28
24
|
Coverband.configure do |config|
|
29
|
-
config.redis = @redis
|
30
25
|
config.reporter = 'scov'
|
31
|
-
config.s3_bucket = nil
|
32
26
|
config.store = @store
|
27
|
+
config.s3_bucket = nil
|
33
28
|
config.ignore = ['notsomething.rb']
|
34
29
|
end
|
35
30
|
Coverband.configuration.logger.stubs('info')
|
36
|
-
|
37
|
-
@redis.sadd(BASE_KEY, 'test/unit/dog.rb')
|
38
|
-
@store.send(:pipelined_save, combined_report)
|
31
|
+
@store.send(:save_report, basic_coverage)
|
39
32
|
|
40
33
|
SimpleCov.expects(:track_files)
|
41
34
|
SimpleCov.expects(:add_not_loaded_files).returns({})
|
@@ -44,31 +37,4 @@ class ReportsSimpleCovTest < Test::Unit::TestCase
|
|
44
37
|
|
45
38
|
Coverband::Reporters::SimpleCovReport.report(@store, open_report: false)
|
46
39
|
end
|
47
|
-
|
48
|
-
test 'generate scov report with additional data' do
|
49
|
-
Coverband.configure do |config|
|
50
|
-
config.redis = @redis
|
51
|
-
config.reporter = 'scov'
|
52
|
-
config.s3_bucket = nil
|
53
|
-
config.store = @store
|
54
|
-
config.ignore = ['notsomething.rb']
|
55
|
-
end
|
56
|
-
|
57
|
-
Coverband::Reporters::SimpleCovReport.expects(:current_root).at_least_once.returns('/tmp/root_dir')
|
58
|
-
|
59
|
-
@redis.sadd(BASE_KEY, 'test/unit/dog.rb')
|
60
|
-
@store.send(:pipelined_save, combined_report)
|
61
|
-
SimpleCov.expects(:track_files)
|
62
|
-
SimpleCov.expects(:add_not_loaded_files).returns('fake_file.rb' => [1])
|
63
|
-
SimpleCov::Result.any_instance.expects(:format!)
|
64
|
-
SimpleCov.stubs(:root)
|
65
|
-
|
66
|
-
|
67
|
-
Coverband.configuration.logger.stubs('info')
|
68
|
-
additional_data = [
|
69
|
-
fake_coverage_report
|
70
|
-
]
|
71
|
-
|
72
|
-
Coverband::Reporters::SimpleCovReport.report(@store, open_report: false, additional_scov_data: additional_data)
|
73
|
-
end
|
74
40
|
end
|
@@ -16,6 +16,10 @@ if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.2.0')
|
|
16
16
|
Coverband::Reporters::Web.new
|
17
17
|
end
|
18
18
|
|
19
|
+
def teardown
|
20
|
+
Coverband.configuration.s3_bucket = nil
|
21
|
+
end
|
22
|
+
|
19
23
|
# TODO add tests for all endpoints
|
20
24
|
test 'renders index content' do
|
21
25
|
get '/'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coverband
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0.alpha
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Mayer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|
@@ -150,6 +150,20 @@ dependencies:
|
|
150
150
|
- - ">="
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: byebug
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
153
167
|
- !ruby/object:Gem::Dependency
|
154
168
|
name: json
|
155
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -186,6 +200,7 @@ extensions: []
|
|
186
200
|
extra_rdoc_files: []
|
187
201
|
files:
|
188
202
|
- ".gitignore"
|
203
|
+
- ".rubocop.yml"
|
189
204
|
- ".travis.yml"
|
190
205
|
- Gemfile
|
191
206
|
- LICENSE
|
@@ -198,39 +213,36 @@ files:
|
|
198
213
|
- lib/coverband.rb
|
199
214
|
- lib/coverband/adapters/base.rb
|
200
215
|
- lib/coverband/adapters/file_store.rb
|
201
|
-
- lib/coverband/adapters/memory_cache_store.rb
|
202
216
|
- lib/coverband/adapters/redis_store.rb
|
203
|
-
- lib/coverband/collectors/base.rb
|
204
217
|
- lib/coverband/collectors/coverage.rb
|
205
|
-
- lib/coverband/collectors/trace.rb
|
206
218
|
- lib/coverband/configuration.rb
|
207
|
-
- lib/coverband/
|
219
|
+
- lib/coverband/integrations/background.rb
|
220
|
+
- lib/coverband/integrations/middleware.rb
|
208
221
|
- lib/coverband/reporters/base.rb
|
209
222
|
- lib/coverband/reporters/console_report.rb
|
210
223
|
- lib/coverband/reporters/simple_cov_report.rb
|
211
224
|
- lib/coverband/reporters/web.rb
|
212
|
-
- lib/coverband/s3_report_writer.rb
|
213
|
-
- lib/coverband/tasks.rb
|
225
|
+
- lib/coverband/utils/s3_report_writer.rb
|
226
|
+
- lib/coverband/utils/tasks.rb
|
214
227
|
- lib/coverband/version.rb
|
215
228
|
- test/benchmarks/.gitignore
|
216
229
|
- test/benchmarks/benchmark.rake
|
217
230
|
- test/benchmarks/dog.rb
|
218
231
|
- test/fake_app/basic_rack.rb
|
219
232
|
- test/test_helper.rb
|
233
|
+
- test/unit/adapters_base_test.rb
|
220
234
|
- test/unit/adapters_file_store_test.rb
|
221
|
-
- test/unit/adapters_memory_cache_store_test.rb
|
222
235
|
- test/unit/adapters_redis_store_test.rb
|
223
|
-
- test/unit/collectors_base_test.rb
|
224
236
|
- test/unit/collectors_coverage_test.rb
|
225
|
-
- test/unit/collectors_trace_test.rb
|
226
237
|
- test/unit/configuration_test.rb
|
227
238
|
- test/unit/dog.rb
|
239
|
+
- test/unit/full_stack_test.rb
|
228
240
|
- test/unit/middleware_test.rb
|
229
241
|
- test/unit/reports_base_test.rb
|
230
242
|
- test/unit/reports_console_test.rb
|
231
243
|
- test/unit/reports_simple_cov_test.rb
|
232
244
|
- test/unit/reports_web_test.rb
|
233
|
-
- test/unit/
|
245
|
+
- test/unit/utils_s3_report_writer_test.rb
|
234
246
|
homepage: https://github.com/danmayer/coverband
|
235
247
|
licenses:
|
236
248
|
- MIT
|
@@ -246,9 +258,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
246
258
|
version: '0'
|
247
259
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
248
260
|
requirements:
|
249
|
-
- - "
|
261
|
+
- - ">"
|
250
262
|
- !ruby/object:Gem::Version
|
251
|
-
version:
|
263
|
+
version: 1.3.1
|
252
264
|
requirements: []
|
253
265
|
rubyforge_project:
|
254
266
|
rubygems_version: 2.5.1
|
@@ -261,17 +273,16 @@ test_files:
|
|
261
273
|
- test/benchmarks/dog.rb
|
262
274
|
- test/fake_app/basic_rack.rb
|
263
275
|
- test/test_helper.rb
|
276
|
+
- test/unit/adapters_base_test.rb
|
264
277
|
- test/unit/adapters_file_store_test.rb
|
265
|
-
- test/unit/adapters_memory_cache_store_test.rb
|
266
278
|
- test/unit/adapters_redis_store_test.rb
|
267
|
-
- test/unit/collectors_base_test.rb
|
268
279
|
- test/unit/collectors_coverage_test.rb
|
269
|
-
- test/unit/collectors_trace_test.rb
|
270
280
|
- test/unit/configuration_test.rb
|
271
281
|
- test/unit/dog.rb
|
282
|
+
- test/unit/full_stack_test.rb
|
272
283
|
- test/unit/middleware_test.rb
|
273
284
|
- test/unit/reports_base_test.rb
|
274
285
|
- test/unit/reports_console_test.rb
|
275
286
|
- test/unit/reports_simple_cov_test.rb
|
276
287
|
- test/unit/reports_web_test.rb
|
277
|
-
- test/unit/
|
288
|
+
- test/unit/utils_s3_report_writer_test.rb
|