coverband 4.1.1 → 4.2.0.alpha

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +1 -4
  3. data/.travis.yml +2 -4
  4. data/README.md +8 -33
  5. data/Rakefile +1 -1
  6. data/changes.md +10 -26
  7. data/coverband.gemspec +0 -4
  8. data/lib/coverband.rb +0 -5
  9. data/lib/coverband/adapters/base.rb +4 -20
  10. data/lib/coverband/adapters/file_store.rb +0 -8
  11. data/lib/coverband/adapters/redis_store.rb +2 -33
  12. data/lib/coverband/at_exit.rb +1 -1
  13. data/lib/coverband/collectors/coverage.rb +1 -7
  14. data/lib/coverband/configuration.rb +2 -30
  15. data/lib/coverband/integrations/background.rb +1 -6
  16. data/lib/coverband/integrations/resque.rb +2 -7
  17. data/lib/coverband/reporters/base.rb +38 -8
  18. data/lib/coverband/reporters/html_report.rb +1 -1
  19. data/lib/coverband/reporters/web.rb +1 -13
  20. data/lib/coverband/utils/file_groups.rb +12 -20
  21. data/lib/coverband/utils/html_formatter.rb +1 -9
  22. data/lib/coverband/utils/railtie.rb +1 -1
  23. data/lib/coverband/utils/tasks.rb +0 -9
  24. data/lib/coverband/version.rb +1 -1
  25. data/test/benchmarks/benchmark.rake +1 -36
  26. data/test/test_helper.rb +12 -5
  27. data/test/{coverband/adapters/base_test.rb → unit/adapters_base_test.rb} +1 -1
  28. data/test/{coverband/adapters/file_store_test.rb → unit/adapters_file_store_test.rb} +1 -1
  29. data/test/{coverband/adapters/redis_store_test.rb → unit/adapters_redis_store_test.rb} +1 -1
  30. data/test/{coverband → unit}/at_exit_test.rb +0 -0
  31. data/test/{coverband/integrations → unit}/background_test.rb +1 -1
  32. data/test/unit/collectors_coverage_test.rb +48 -0
  33. data/test/{coverband → unit}/configuration_test.rb +3 -13
  34. data/test/{coverband → unit}/coverband_test.rb +0 -0
  35. data/test/{dog.rb → unit/dog.rb} +0 -0
  36. data/test/{integration → unit}/full_stack_test.rb +2 -4
  37. data/test/{coverband/integrations → unit}/middleware_test.rb +1 -1
  38. data/test/{coverband/integrations/rack_server_check_test.rb → unit/rack_server_checkout_test.rb} +1 -1
  39. data/test/{integration → unit}/rails_full_stack_test.rb +3 -4
  40. data/test/{integration → unit}/rails_gems_full_stack_test.rb +1 -2
  41. data/test/unit/reports_base_test.rb +117 -0
  42. data/test/{coverband/reporters/console_test.rb → unit/reports_console_test.rb} +5 -6
  43. data/test/{coverband/reporters/html_test.rb → unit/reports_html_test.rb} +1 -1
  44. data/test/{coverband/reporters/web_test.rb → unit/reports_web_test.rb} +2 -2
  45. data/test/{coverband/integrations → unit}/resque_worker_test.rb +8 -9
  46. data/test/{coverband/integrations → unit}/test_resque_job.rb +0 -0
  47. data/test/unit/utils/file_groups_test.rb +31 -0
  48. data/test/{coverband → unit}/utils/file_list_test.rb +0 -0
  49. data/test/{coverband → unit}/utils/gem_list_test.rb +0 -0
  50. data/test/{coverband → unit}/utils/lines_classifier_test.rb +0 -0
  51. data/test/{coverband → unit}/utils/result_test.rb +0 -0
  52. data/test/{coverband → unit}/utils/s3_report_test.rb +0 -0
  53. data/test/{coverband → unit}/utils/source_file_line_test.rb +0 -0
  54. data/test/{coverband → unit}/utils/source_file_test.rb +0 -0
  55. data/views/layout.erb +0 -4
  56. metadata +61 -100
  57. data/lib/coverband/utils/file_path_helper.rb +0 -57
  58. data/public/favicon.png +0 -0
  59. data/test/benchmarks/coverage_fork.sh +0 -37
  60. data/test/coverband/collectors/coverage_test.rb +0 -67
  61. data/test/coverband/reporters/base_test.rb +0 -168
  62. data/test/coverband/utils/file_groups_test.rb +0 -55
  63. data/test/rails4_dummy/tmp/.keep +0 -0
  64. data/test/unique_files.rb +0 -23
  65. data/views/settings.erb +0 -35
@@ -16,32 +16,22 @@ class BaseTest < Minitest::Test
16
16
  end
17
17
  end
18
18
 
19
- test 'defaults' do
19
+ test 'defaults ' do
20
20
  coverband = Coverband::Collectors::Coverage.instance.reset_instance
21
21
  assert_equal ['vendor', 'internal:prelude', 'schema.rb'], coverband.instance_variable_get('@ignore_patterns')
22
22
  end
23
23
 
24
- test 'gem_paths' do
24
+ test 'gem_paths ' do
25
25
  Coverband::Collectors::Coverage.instance.reset_instance
26
26
  assert Coverband.configuration.gem_paths.first != nil
27
27
  end
28
28
 
29
- test 'groups' do
29
+ test 'groups ' do
30
30
  Coverband::Collectors::Coverage.instance.reset_instance
31
31
  Coverband.configuration.track_gems = true
32
32
  assert_equal %w(App Gems), Coverband.configuration.groups.keys
33
33
  end
34
34
 
35
- test 'all_root_paths' do
36
- Coverband::Collectors::Coverage.instance.reset_instance
37
- current_paths = Coverband.configuration.root_paths.dup
38
- # verify previous bug fix
39
- # it would extend the root_paths instance variable on each invokation
40
- Coverband.configuration.all_root_paths
41
- Coverband.configuration.all_root_paths
42
- assert_equal current_paths, Coverband.configuration.root_paths
43
- end
44
-
45
35
  test 's3 options' do
46
36
  Coverband::Collectors::Coverage.instance.reset_instance
47
37
  Coverband.configure do |config|
File without changes
File without changes
@@ -6,7 +6,6 @@ require 'rack'
6
6
  class FullStackTest < Minitest::Test
7
7
  REDIS_STORAGE_FORMAT_VERSION = Coverband::Adapters::RedisStore::REDIS_STORAGE_FORMAT_VERSION
8
8
  TEST_RACK_APP = '../fake_app/basic_rack.rb'
9
- RELATIVE_FILE = './fake_app/basic_rack.rb'
10
9
 
11
10
  def setup
12
11
  super
@@ -16,7 +15,6 @@ class FullStackTest < Minitest::Test
16
15
  config.store = Coverband::Adapters::RedisStore.new(Redis.new)
17
16
  config.s3_bucket = nil
18
17
  config.background_reporting_enabled = false
19
- config.root_paths = ["#{File.expand_path('../', File.dirname(__FILE__))}/"]
20
18
  end
21
19
  Coverband.configuration.store.clear!
22
20
  Coverband.start
@@ -31,13 +29,13 @@ class FullStackTest < Minitest::Test
31
29
  assert_equal 'Hello Rack!', results.last
32
30
  sleep(0.1)
33
31
  expected = [nil, nil, 1, nil, 1, 1, 1, nil, nil]
34
- assert_equal expected, Coverband.configuration.store.coverage[RELATIVE_FILE]['data']
32
+ assert_equal expected, Coverband.configuration.store.coverage[@rack_file]['data']
35
33
 
36
34
  # additional calls increase count by 1
37
35
  middleware.call(request)
38
36
  sleep(0.1)
39
37
  expected = [nil, nil, 1, nil, 1, 1, 2, nil, nil]
40
- assert_equal expected, Coverband.configuration.store.coverage[RELATIVE_FILE]['data']
38
+ assert_equal expected, Coverband.configuration.store.coverage[@rack_file]['data']
41
39
  end
42
40
 
43
41
  test 'call app with gem tracking' do
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require File.expand_path('../../test_helper', File.dirname(__FILE__))
3
+ require File.expand_path('../test_helper', File.dirname(__FILE__))
4
4
  require 'rack'
5
5
 
6
6
  class MiddlewareTest < Minitest::Test
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require File.expand_path('../../test_helper', File.dirname(__FILE__))
3
+ require File.expand_path('../test_helper', File.dirname(__FILE__))
4
4
 
5
5
  class RackServerCheckTest < Minitest::Test
6
6
  test 'returns true when running in rack server' do
@@ -10,7 +10,6 @@ class RailsFullStackTest < Minitest::Test
10
10
  super
11
11
  # The normal relative directory lookup of coverband won't work for our dummy rails project
12
12
  Coverband.configure("./test/rails#{Rails::VERSION::MAJOR}_dummy/config/coverband.rb")
13
- Coverband.configuration.background_reporting_enabled = false
14
13
  Coverband.start
15
14
  end
16
15
 
@@ -22,8 +21,8 @@ class RailsFullStackTest < Minitest::Test
22
21
 
23
22
  test 'this is how we do it' do
24
23
  visit '/dummy/show'
25
- Coverband.report_coverage(true)
26
24
  assert_content('I am no dummy')
25
+ sleep 0.2
27
26
  visit '/coverage'
28
27
  within page.find('a', text: /dummy_controller.rb/).find(:xpath, '../..') do
29
28
  assert_selector('td', text: '100.0 %')
@@ -47,7 +46,7 @@ class RailsFullStackTest < Minitest::Test
47
46
  3.times do
48
47
  visit '/dummy/show'
49
48
  assert_content('I am no dummy')
50
- Coverband.report_coverage(true)
49
+ Coverband::Collectors::Coverage.instance.report_coverage(true)
51
50
  end
52
51
 
53
52
  previous_out = $stdout
@@ -58,7 +57,7 @@ class RailsFullStackTest < Minitest::Test
58
57
  15.times do
59
58
  visit '/dummy/show'
60
59
  assert_content('I am no dummy')
61
- Coverband.report_coverage(true)
60
+ Coverband::Collectors::Coverage.instance.report_coverage(true)
62
61
  # this is expected to retain memory across requests
63
62
  # clear it to remove the false positive from test
64
63
  Coverband::Collectors::Coverage.instance.send(:add_previous_results, nil)
@@ -12,7 +12,6 @@ class RailsGemsFullStackTest < Minitest::Test
12
12
  Coverband.configure("./test/rails#{Rails::VERSION::MAJOR}_dummy/config/coverband.rb")
13
13
  Coverband.configuration.track_gems = true
14
14
  Coverband.configuration.gem_details = true
15
- Coverband.configuration.background_reporting_enabled = false
16
15
  Coverband.start
17
16
  require 'rainbow'
18
17
  Rainbow('this text is red').red
@@ -27,7 +26,7 @@ class RailsGemsFullStackTest < Minitest::Test
27
26
  test 'this is how gem it' do
28
27
  visit '/dummy/show'
29
28
  assert_content('I am no dummy')
30
- Coverband.report_coverage(true)
29
+ sleep 0.2
31
30
  visit '/coverage'
32
31
  assert_content('Coverband Admin')
33
32
  assert_content('Gems')
@@ -0,0 +1,117 @@
1
+ # frozen_string_literal: true
2
+
3
+ require File.expand_path('../test_helper', File.dirname(__FILE__))
4
+
5
+ class ReportsBaseTest < Minitest::Test
6
+ test 'filename_from_key fix filename from a key with a swappable path' do
7
+ Coverband.configure do |config|
8
+ config.reporter = 'std_out'
9
+ config.root = '/full/remote_app/path'
10
+ end
11
+
12
+ key = '/app/is/a/path.rb'
13
+ # the code takes config.root expands and adds a '/' for the final path in roots
14
+ roots = ['/app/', '/full/remote_app/path/']
15
+
16
+ expected_path = '/full/remote_app/path/is/a/path.rb'
17
+ File.expects(:exist?).with(key).returns(false)
18
+ File.expects(:exist?).with(expected_path).returns(true)
19
+ assert_equal expected_path, Coverband::Reporters::Base.send(:filename_from_key, key, roots)
20
+ end
21
+
22
+ test 'filename_from_key fix filename a changing deploy path with double quotes' do
23
+ Coverband.configure do |config|
24
+ config.reporter = 'std_out'
25
+ config.root = '/full/remote_app/path'
26
+ end
27
+
28
+ key = '/box/apps/app_name/releases/20140725203539/app/models/user.rb'
29
+ # the code takes config.root expands and adds a '/' for the final path in roots
30
+ # note to get regex to work for changing deploy directories
31
+ # it must be double escaped in double quotes or use single qoutes
32
+ roots = ['/box/apps/app_name/releases/\\d+/', '/full/remote_app/path/']
33
+
34
+ expected_path = '/full/remote_app/path/app/models/user.rb'
35
+ File.expects(:exist?).with('/box/apps/app_name/releases/\\d+/app/models/user.rb').returns(false)
36
+ File.expects(:exist?).with(expected_path).returns(true)
37
+ assert_equal expected_path, Coverband::Reporters::Base.send(:filename_from_key, key, roots)
38
+ end
39
+
40
+ test 'filename_from_key fix filename a changing deploy path with single quotes' do
41
+ Coverband.configure do |config|
42
+ config.reporter = 'std_out'
43
+ config.root = '/full/remote_app/path'
44
+ end
45
+
46
+ key = '/box/apps/app_name/releases/20140725203539/app/models/user.rb'
47
+ # the code takes config.root expands and adds a '/' for the final path in roots
48
+ # note to get regex to work for changing deploy directories
49
+ # it must be double escaped in double quotes or use single qoutes
50
+ roots = ['/box/apps/app_name/releases/\d+/', '/full/remote_app/path/']
51
+
52
+ expected_path = '/full/remote_app/path/app/models/user.rb'
53
+ File.expects(:exist?).with('/box/apps/app_name/releases/\\d+/app/models/user.rb').returns(false)
54
+ File.expects(:exist?).with(expected_path).returns(true)
55
+ assert_equal expected_path, Coverband::Reporters::Base.send(:filename_from_key, key, roots)
56
+ end
57
+
58
+ test 'filename_from_key leave filename from a key with a local path' do
59
+ Coverband.configure do |config|
60
+ config.reporter = 'std_out'
61
+ config.root = '/full/remote_app/path'
62
+ end
63
+
64
+ key = '/full/remote_app/path/is/a/path.rb'
65
+ # the code takes config.root expands and adds a '/' for the final path in roots
66
+ roots = ['/app/', '/full/remote_app/path/']
67
+
68
+ expected_path = '/full/remote_app/path/is/a/path.rb'
69
+ assert_equal expected_path, Coverband::Reporters::Base.send(:filename_from_key, key, roots)
70
+ end
71
+
72
+ test '#merge_arrays basic merge preserves order and counts' do
73
+ first = [0, 0, 1, 0, 1]
74
+ second = [nil, 0, 1, 0, 0]
75
+ expects = [0, 0, 2, 0, 1]
76
+
77
+ assert_equal expects, Coverband::Reporters::Base.send(:merge_arrays, first, second)
78
+ end
79
+
80
+ test '#merge_arrays basic merge preserves order and counts different lengths' do
81
+ first = [0, 0, 1, 0, 1]
82
+ second = [nil, 0, 1, 0, 0, 0, 0, 1]
83
+ expects = [0, 0, 2, 0, 1, 0, 0, 1]
84
+
85
+ assert_equal expects, Coverband::Reporters::Base.send(:merge_arrays, first, second)
86
+ end
87
+
88
+ test '#merge_arrays basic merge preserves nils' do
89
+ first = [0, 1, 2, nil, nil, nil]
90
+ second = [0, 1, 2, nil, 0, 1, 2]
91
+ expects = [0, 2, 4, nil, 0, 1, 2]
92
+
93
+ assert_equal expects, Coverband::Reporters::Base.send(:merge_arrays, first, second)
94
+ end
95
+
96
+ test "#get_current_scov_data_imp doesn't ignore folders with default ignore keys" do
97
+ @redis = Redis.new
98
+ store = Coverband::Adapters::RedisStore.new(@redis)
99
+ store.clear!
100
+
101
+ Coverband.configure do |config|
102
+ config.reporter = 'std_out'
103
+ config.ignore = %w(vendor .erb$ .slim$)
104
+ config.root = '/full/remote_app/path'
105
+ config.store = store
106
+ end
107
+
108
+ key = '/a_path/that_has_erb_in/thepath.rb'
109
+ roots = ['/app/', '/full/remote_app/path/']
110
+
111
+ lines_hit = [1, 3, 6]
112
+ store.stubs(:coverage).returns(key => lines_hit)
113
+ expected = { key => [1, 3, 6] }
114
+
115
+ assert_equal expected, Coverband::Reporters::Base.send(:get_current_scov_data_imp, store, roots)
116
+ end
117
+ end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require File.expand_path('../../test_helper', File.dirname(__FILE__))
3
+ require File.expand_path('../test_helper', File.dirname(__FILE__))
4
4
 
5
5
  class HTMLReportTest < Minitest::Test
6
6
  REDIS_STORAGE_FORMAT_VERSION = Coverband::Adapters::RedisStore::REDIS_STORAGE_FORMAT_VERSION
@@ -20,14 +20,13 @@ class HTMLReportTest < Minitest::Test
20
20
  end
21
21
  Coverband.configuration.logger.stubs('info')
22
22
  mock_file_hash
23
- Coverband.configuration
24
- .expects(:current_root)
25
- .at_least_once
26
- .returns('app_path')
23
+ Coverband::Reporters::ConsoleReport
24
+ .expects(:current_root)
25
+ .returns('app_path')
27
26
  @store.send(:save_report, basic_coverage)
28
27
 
29
28
  report = Coverband::Reporters::ConsoleReport.report(@store)
30
- expected = { './dog.rb' => [0, 1, 2] }
29
+ expected = { 'app_path/dog.rb' => [0, 1, 2] }
31
30
  assert_equal(expected.keys, report.keys)
32
31
  end
33
32
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require File.expand_path('../../test_helper', File.dirname(__FILE__))
3
+ require File.expand_path('../test_helper', File.dirname(__FILE__))
4
4
 
5
5
  class ReportHTMLTest < Minitest::Test
6
6
  REDIS_STORAGE_FORMAT_VERSION = Coverband::Adapters::RedisStore::REDIS_STORAGE_FORMAT_VERSION
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require File.expand_path('../../test_helper', File.dirname(__FILE__))
3
+ require File.expand_path('../test_helper', File.dirname(__FILE__))
4
4
  require 'aws-sdk-s3'
5
- require File.expand_path('../../../lib/coverband/reporters/web', File.dirname(__FILE__))
5
+ require File.expand_path('../../lib/coverband/reporters/web', File.dirname(__FILE__))
6
6
  require 'rack/test'
7
7
 
8
8
  ENV['RACK_ENV'] = 'test'
@@ -1,21 +1,18 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require File.expand_path('../../test_helper', File.dirname(__FILE__))
3
+ require File.expand_path('../test_helper', File.dirname(__FILE__))
4
4
 
5
5
  class ResqueWorkerTest < Minitest::Test
6
6
  def enqueue_and_run_job
7
7
  Resque.enqueue(TestResqueJob)
8
8
  queue = ENV['QUEUE'] ='resque_coverband'
9
- worker = Resque::Worker.new
10
- worker.startup
11
- worker.work_one_job
9
+ Resque::Worker.new.work_one_job
12
10
  end
13
11
 
14
12
  def setup
15
13
  super
16
14
  Coverband.configure do |config|
17
15
  config.background_reporting_enabled = false
18
- config.root_paths = ["#{File.expand_path('../', File.dirname(__FILE__))}/"]
19
16
  end
20
17
  Coverband.start
21
18
  redis = Coverband.configuration.store.send(:redis)
@@ -23,14 +20,16 @@ class ResqueWorkerTest < Minitest::Test
23
20
  end
24
21
 
25
22
  test 'resque job coverage' do
26
- relative_job_file = './integrations/test_resque_job.rb'
27
23
  resque_job_file = File.expand_path('./test_resque_job.rb', File.dirname(__FILE__))
28
24
  require resque_job_file
29
25
 
30
- enqueue_and_run_job
26
+ #report after loading the file in parent process
27
+ Coverband::Collectors::Coverage.instance.report_coverage(true)
31
28
 
32
- assert !Coverband::Background.running?
29
+ enqueue_and_run_job
33
30
 
34
- assert_equal 1, Coverband.configuration.store.coverage[relative_job_file]['data'][4]
31
+ puts "assert_equal 1, Coverband.configuration.store.coverage['#{resque_job_file}']['data'][4]"
32
+ assert_equal 1, Coverband.configuration.store.coverage[resque_job_file]['data'][4]
35
33
  end
36
34
  end
35
+
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ require File.expand_path('../../test_helper', File.dirname(__FILE__))
4
+
5
+ ####
6
+ # Thanks for all the help SimpleCov https://github.com/colszowka/simplecov-html
7
+ # initial version of test pulled into Coverband from Simplecov 12/19/2018
8
+ ####
9
+ describe Coverband::Utils::FileGroups do
10
+ FAKE_GEM_PATH = 'fake/gem/path'
11
+ subject do
12
+ controller_lines = [nil, 2, 2, 0, nil, nil, 0, nil, nil, nil]
13
+ files = [
14
+ Coverband::Utils::SourceFile.new(source_fixture('sample.rb'), [nil, 1, 1, 1, nil, nil, 1, 1, nil, nil]),
15
+ Coverband::Utils::SourceFile.new(source_fixture('app/models/user.rb'), [nil, 1, 1, 1, nil, nil, 1, 0, nil, nil]),
16
+ Coverband::Utils::SourceFile.new(source_fixture('app/controllers/sample_controller.rb'), controller_lines),
17
+ Coverband::Utils::SourceFile.new("#{FAKE_GEM_PATH}/gem_name.rb", controller_lines)
18
+ ]
19
+ Coverband.configuration.expects(:gem_paths).returns([FAKE_GEM_PATH])
20
+ Coverband.configuration.track_gems = true
21
+ Coverband::Utils::FileGroups.new(files)
22
+ end
23
+
24
+ it 'has app files' do
25
+ assert_equal 'test/fixtures/sample.rb', subject.grouped_results['App'].first.short_name
26
+ end
27
+
28
+ it 'has gem files' do
29
+ assert_equal "#{FAKE_GEM_PATH}/gem_name.rb", subject.grouped_results['Gems'].first.first.short_name
30
+ end
31
+ end
File without changes
File without changes
File without changes
File without changes
File without changes
data/views/layout.erb CHANGED
@@ -16,15 +16,11 @@
16
16
  <div id="wrapper" style="display:none;">
17
17
  <div id="header">
18
18
  <a href='<%= base_path %>'>Coverband Admin</a> &nbsp;
19
- <a href='<%= base_path %>settings'>Info</a> &nbsp;
20
19
  <%= button("#{base_path}collect_coverage", 'force coverage collection') %> &nbsp;
21
20
  <%= button("#{base_path}reload_files", 'reload Coverband files') %> &nbsp;
22
21
  <% if Coverband.configuration.web_enable_clear %>
23
22
  <%= button("#{base_path}clear", 'clear coverage report', delete: true) %>
24
23
  <% end %>
25
- <% if Coverband.configuration.web_debug %>
26
- <a href='<%= base_path %>debug_data'>Debug Data</a> &nbsp;
27
- <% end %>
28
24
  </div>
29
25
  <% if notice.to_s.length > 0 %>
30
26
  <div class="notice"><%= notice %></div>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coverband
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.1
4
+ version: 4.2.0.alpha
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Mayer
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-03-20 00:00:00.000000000 Z
12
+ date: 2019-02-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk-s3
@@ -165,20 +165,6 @@ dependencies:
165
165
  - - ">="
166
166
  - !ruby/object:Gem::Version
167
167
  version: '0'
168
- - !ruby/object:Gem::Dependency
169
- name: minitest-reporters
170
- requirement: !ruby/object:Gem::Requirement
171
- requirements:
172
- - - ">="
173
- - !ruby/object:Gem::Version
174
- version: '0'
175
- type: :development
176
- prerelease: false
177
- version_requirements: !ruby/object:Gem::Requirement
178
- requirements:
179
- - - ">="
180
- - !ruby/object:Gem::Version
181
- version: '0'
182
168
  - !ruby/object:Gem::Dependency
183
169
  name: classifier-reborn
184
170
  requirement: !ruby/object:Gem::Requirement
@@ -221,20 +207,6 @@ dependencies:
221
207
  - - ">="
222
208
  - !ruby/object:Gem::Version
223
209
  version: '0'
224
- - !ruby/object:Gem::Dependency
225
- name: minitest-profile
226
- requirement: !ruby/object:Gem::Requirement
227
- requirements:
228
- - - ">="
229
- - !ruby/object:Gem::Version
230
- version: '0'
231
- type: :development
232
- prerelease: false
233
- version_requirements: !ruby/object:Gem::Requirement
234
- requirements:
235
- - - ">="
236
- - !ruby/object:Gem::Version
237
- version: '0'
238
210
  - !ruby/object:Gem::Dependency
239
211
  name: redis
240
212
  requirement: !ruby/object:Gem::Requirement
@@ -285,7 +257,6 @@ files:
285
257
  - lib/coverband/reporters/web.rb
286
258
  - lib/coverband/utils/file_groups.rb
287
259
  - lib/coverband/utils/file_list.rb
288
- - lib/coverband/utils/file_path_helper.rb
289
260
  - lib/coverband/utils/gem_list.rb
290
261
  - lib/coverband/utils/html_formatter.rb
291
262
  - lib/coverband/utils/lines_classifier.rb
@@ -301,7 +272,6 @@ files:
301
272
  - public/colorbox/controls.png
302
273
  - public/colorbox/loading.gif
303
274
  - public/colorbox/loading_background.png
304
- - public/favicon.png
305
275
  - public/favicon_green.png
306
276
  - public/favicon_red.png
307
277
  - public/favicon_yellow.png
@@ -322,34 +292,8 @@ files:
322
292
  - public/magnify.png
323
293
  - test/benchmarks/.gitignore
324
294
  - test/benchmarks/benchmark.rake
325
- - test/benchmarks/coverage_fork.sh
326
295
  - test/benchmarks/dog.rb
327
296
  - test/benchmarks/graph_bench.sh
328
- - test/coverband/adapters/base_test.rb
329
- - test/coverband/adapters/file_store_test.rb
330
- - test/coverband/adapters/redis_store_test.rb
331
- - test/coverband/at_exit_test.rb
332
- - test/coverband/collectors/coverage_test.rb
333
- - test/coverband/configuration_test.rb
334
- - test/coverband/coverband_test.rb
335
- - test/coverband/integrations/background_test.rb
336
- - test/coverband/integrations/middleware_test.rb
337
- - test/coverband/integrations/rack_server_check_test.rb
338
- - test/coverband/integrations/resque_worker_test.rb
339
- - test/coverband/integrations/test_resque_job.rb
340
- - test/coverband/reporters/base_test.rb
341
- - test/coverband/reporters/console_test.rb
342
- - test/coverband/reporters/html_test.rb
343
- - test/coverband/reporters/web_test.rb
344
- - test/coverband/utils/file_groups_test.rb
345
- - test/coverband/utils/file_list_test.rb
346
- - test/coverband/utils/gem_list_test.rb
347
- - test/coverband/utils/lines_classifier_test.rb
348
- - test/coverband/utils/result_test.rb
349
- - test/coverband/utils/s3_report_test.rb
350
- - test/coverband/utils/source_file_line_test.rb
351
- - test/coverband/utils/source_file_test.rb
352
- - test/dog.rb
353
297
  - test/fake_app/basic_rack.rb
354
298
  - test/fixtures/app/controllers/sample_controller.rb
355
299
  - test/fixtures/app/models/user.rb
@@ -358,9 +302,6 @@ files:
358
302
  - test/fixtures/skipped.rb
359
303
  - test/fixtures/skipped_and_executed.rb
360
304
  - test/fixtures/utf-8.rb
361
- - test/integration/full_stack_test.rb
362
- - test/integration/rails_full_stack_test.rb
363
- - test/integration/rails_gems_full_stack_test.rb
364
305
  - test/rails4_dummy/app/controllers/dummy_controller.rb
365
306
  - test/rails4_dummy/config.ru
366
307
  - test/rails4_dummy/config/application.rb
@@ -369,21 +310,45 @@ files:
369
310
  - test/rails4_dummy/config/environment.rb
370
311
  - test/rails4_dummy/config/routes.rb
371
312
  - test/rails4_dummy/config/secrets.yml
372
- - test/rails4_dummy/tmp/.keep
373
313
  - test/rails5_dummy/app/controllers/dummy_controller.rb
374
314
  - test/rails5_dummy/config.ru
375
315
  - test/rails5_dummy/config/application.rb
376
316
  - test/rails5_dummy/config/coverband.rb
377
317
  - test/rails5_dummy/config/environment.rb
378
318
  - test/rails5_dummy/config/routes.rb
379
- - test/rails5_dummy/tmp/.keep
380
319
  - test/rails_test_helper.rb
381
320
  - test/test_helper.rb
382
- - test/unique_files.rb
321
+ - test/unit/adapters_base_test.rb
322
+ - test/unit/adapters_file_store_test.rb
323
+ - test/unit/adapters_redis_store_test.rb
324
+ - test/unit/at_exit_test.rb
325
+ - test/unit/background_test.rb
326
+ - test/unit/collectors_coverage_test.rb
327
+ - test/unit/configuration_test.rb
328
+ - test/unit/coverband_test.rb
329
+ - test/unit/dog.rb
330
+ - test/unit/full_stack_test.rb
331
+ - test/unit/middleware_test.rb
332
+ - test/unit/rack_server_checkout_test.rb
333
+ - test/unit/rails_full_stack_test.rb
334
+ - test/unit/rails_gems_full_stack_test.rb
335
+ - test/unit/reports_base_test.rb
336
+ - test/unit/reports_console_test.rb
337
+ - test/unit/reports_html_test.rb
338
+ - test/unit/reports_web_test.rb
339
+ - test/unit/resque_worker_test.rb
340
+ - test/unit/test_resque_job.rb
341
+ - test/unit/utils/file_groups_test.rb
342
+ - test/unit/utils/file_list_test.rb
343
+ - test/unit/utils/gem_list_test.rb
344
+ - test/unit/utils/lines_classifier_test.rb
345
+ - test/unit/utils/result_test.rb
346
+ - test/unit/utils/s3_report_test.rb
347
+ - test/unit/utils/source_file_line_test.rb
348
+ - test/unit/utils/source_file_test.rb
383
349
  - views/file_list.erb
384
350
  - views/gem_list.erb
385
351
  - views/layout.erb
386
- - views/settings.erb
387
352
  - views/source_file.erb
388
353
  homepage: https://github.com/danmayer/coverband
389
354
  licenses:
@@ -400,46 +365,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
400
365
  version: '0'
401
366
  required_rubygems_version: !ruby/object:Gem::Requirement
402
367
  requirements:
403
- - - ">="
368
+ - - ">"
404
369
  - !ruby/object:Gem::Version
405
- version: '0'
370
+ version: 1.3.1
406
371
  requirements: []
407
372
  rubyforge_project:
408
- rubygems_version: 2.7.8
373
+ rubygems_version: 2.5.1
409
374
  signing_key:
410
375
  specification_version: 4
411
376
  summary: Rack middleware to help measure production code usage (LOC runtime usage)
412
377
  test_files:
413
378
  - test/benchmarks/.gitignore
414
379
  - test/benchmarks/benchmark.rake
415
- - test/benchmarks/coverage_fork.sh
416
380
  - test/benchmarks/dog.rb
417
381
  - test/benchmarks/graph_bench.sh
418
- - test/coverband/adapters/base_test.rb
419
- - test/coverband/adapters/file_store_test.rb
420
- - test/coverband/adapters/redis_store_test.rb
421
- - test/coverband/at_exit_test.rb
422
- - test/coverband/collectors/coverage_test.rb
423
- - test/coverband/configuration_test.rb
424
- - test/coverband/coverband_test.rb
425
- - test/coverband/integrations/background_test.rb
426
- - test/coverband/integrations/middleware_test.rb
427
- - test/coverband/integrations/rack_server_check_test.rb
428
- - test/coverband/integrations/resque_worker_test.rb
429
- - test/coverband/integrations/test_resque_job.rb
430
- - test/coverband/reporters/base_test.rb
431
- - test/coverband/reporters/console_test.rb
432
- - test/coverband/reporters/html_test.rb
433
- - test/coverband/reporters/web_test.rb
434
- - test/coverband/utils/file_groups_test.rb
435
- - test/coverband/utils/file_list_test.rb
436
- - test/coverband/utils/gem_list_test.rb
437
- - test/coverband/utils/lines_classifier_test.rb
438
- - test/coverband/utils/result_test.rb
439
- - test/coverband/utils/s3_report_test.rb
440
- - test/coverband/utils/source_file_line_test.rb
441
- - test/coverband/utils/source_file_test.rb
442
- - test/dog.rb
443
382
  - test/fake_app/basic_rack.rb
444
383
  - test/fixtures/app/controllers/sample_controller.rb
445
384
  - test/fixtures/app/models/user.rb
@@ -448,9 +387,6 @@ test_files:
448
387
  - test/fixtures/skipped.rb
449
388
  - test/fixtures/skipped_and_executed.rb
450
389
  - test/fixtures/utf-8.rb
451
- - test/integration/full_stack_test.rb
452
- - test/integration/rails_full_stack_test.rb
453
- - test/integration/rails_gems_full_stack_test.rb
454
390
  - test/rails4_dummy/app/controllers/dummy_controller.rb
455
391
  - test/rails4_dummy/config.ru
456
392
  - test/rails4_dummy/config/application.rb
@@ -459,14 +395,39 @@ test_files:
459
395
  - test/rails4_dummy/config/environment.rb
460
396
  - test/rails4_dummy/config/routes.rb
461
397
  - test/rails4_dummy/config/secrets.yml
462
- - test/rails4_dummy/tmp/.keep
463
398
  - test/rails5_dummy/app/controllers/dummy_controller.rb
464
399
  - test/rails5_dummy/config.ru
465
400
  - test/rails5_dummy/config/application.rb
466
401
  - test/rails5_dummy/config/coverband.rb
467
402
  - test/rails5_dummy/config/environment.rb
468
403
  - test/rails5_dummy/config/routes.rb
469
- - test/rails5_dummy/tmp/.keep
470
404
  - test/rails_test_helper.rb
471
405
  - test/test_helper.rb
472
- - test/unique_files.rb
406
+ - test/unit/adapters_base_test.rb
407
+ - test/unit/adapters_file_store_test.rb
408
+ - test/unit/adapters_redis_store_test.rb
409
+ - test/unit/at_exit_test.rb
410
+ - test/unit/background_test.rb
411
+ - test/unit/collectors_coverage_test.rb
412
+ - test/unit/configuration_test.rb
413
+ - test/unit/coverband_test.rb
414
+ - test/unit/dog.rb
415
+ - test/unit/full_stack_test.rb
416
+ - test/unit/middleware_test.rb
417
+ - test/unit/rack_server_checkout_test.rb
418
+ - test/unit/rails_full_stack_test.rb
419
+ - test/unit/rails_gems_full_stack_test.rb
420
+ - test/unit/reports_base_test.rb
421
+ - test/unit/reports_console_test.rb
422
+ - test/unit/reports_html_test.rb
423
+ - test/unit/reports_web_test.rb
424
+ - test/unit/resque_worker_test.rb
425
+ - test/unit/test_resque_job.rb
426
+ - test/unit/utils/file_groups_test.rb
427
+ - test/unit/utils/file_list_test.rb
428
+ - test/unit/utils/gem_list_test.rb
429
+ - test/unit/utils/lines_classifier_test.rb
430
+ - test/unit/utils/result_test.rb
431
+ - test/unit/utils/s3_report_test.rb
432
+ - test/unit/utils/source_file_line_test.rb
433
+ - test/unit/utils/source_file_test.rb