minitest-coverage 1.0.0.b1 → 1.0.0.b2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 86bcc7a21e9f3139f23a5b705948c08a6556a096
4
- data.tar.gz: 86387a496d64055c920b5f7fb37a793c6c747521
3
+ metadata.gz: 6e31fea6867a30c3db60c36a090998f55c5cc5ff
4
+ data.tar.gz: 7318b77f1cb20d4f8b331fc120e728b6c62bb276
5
5
  SHA512:
6
- metadata.gz: ee5f01db049c2c840c96dbde539fa237815a066b77fb4b5304ebcd9150c4983735922e60354b72adcdc5b23d63670ae0821a17e347365a49bcba44e7e2ca757c
7
- data.tar.gz: b839b72737afdbea82c9f3891b940728c93d563af43e13c56557ecc28f95a57c02bf1b9e877889124ddc8443cf3b629547e9e4437ef3a97d2deee86ca1f041d7
6
+ metadata.gz: fb5d7ee2f474b787dc3b88eca7d67549f9eff203ebe852145adbeeb1b94e66fafc0618df6860a8a9b30cb93437df85804ac2743bd9dca83c76d90ea3c7fa8458
7
+ data.tar.gz: 005b4700a56ed6fe1f47379d099640914392b22f6ad84d3f6b58bb8961012102793854ec70abf0082cb6fd30c97c7277162bf76f259ba5ff97de0413853bdf70
Binary file
data.tar.gz.sig CHANGED
@@ -1,3 +1 @@
1
- 2��������TYz6�ʸ��v4��{AdY��Ԗr��s
2
- �o�<
3
- ���%�����[T�����9rl���;n�<þ^�����nc
1
+ ����U���i�#0��ɬ����ۻy��.I����Mj���%Ȕ���Mˀ+f��p^���ӗn��A��I�(��Gu��_Ѵ`�� Uú+�xGW��)�=��e4�6�מ�Q��D��2pH'HP�N\�4`®Z\��X$:؎%������A���uڼ�9�W��G�ц�m�h���aaqn�a ����}�a |Ex�>�W�6��h��ѡۉ����ܸ�z"�����G[Ky��M
@@ -1,3 +1,16 @@
1
+ === 1.0.0.b2 / 2017-05-09
2
+
3
+ * 3 minor enhancements:
4
+
5
+ * Added location discovery to baseline generation. Helps with mapping test to impl.
6
+ * Produce SimpleCov HTML report if simplecov is installed! (jamesdabbs)
7
+ * Stripped Dir.pwd from class/module locations on creation.
8
+
9
+ * 2 bug fixes:
10
+
11
+ * Added require_ruby_version to use 2.3+
12
+ * Turned rdoc generation back on. Gem hell resolved.
13
+
1
14
  === 1.0.0.b1 / 2016-09-12
2
15
 
3
16
  * 1 major enhancement
data/Rakefile CHANGED
@@ -10,9 +10,10 @@ Hoe.plugin :rdoc
10
10
  Hoe.spec "minitest-coverage" do
11
11
  developer "Ryan Davis", "ryand-ruby@zenspider.com"
12
12
 
13
- self.need_rdoc = false
14
-
15
13
  license "MIT"
14
+
15
+ multiruby_skip << "2.0" << "2.1" << "2.2"
16
+ require_ruby_version "~> 2.3"
16
17
  end
17
18
 
18
19
  # vim: syntax=ruby
@@ -12,6 +12,18 @@ if File.file? path then
12
12
  require path
13
13
  end
14
14
 
15
+ $mtc_location = Hash.new { |h,k| h[k] = [] }
16
+
17
+ class Object
18
+ def self.inherited x
19
+ pwd = Dir.pwd
20
+ where = caller.first.split(/:/, 2).first
21
+ return unless where.include? pwd
22
+ where = where[pwd.length+1..-1]
23
+ $mtc_location[x] << where
24
+ end
25
+ end
26
+
15
27
  # TODO: app/** shouldn't be necessary given RAILS_ENV + environment.rb above.
16
28
  Dir["app/**/*.rb", "lib/**/*.rb"].each do |path|
17
29
  begin
@@ -22,4 +34,8 @@ Dir["app/**/*.rb", "lib/**/*.rb"].each do |path|
22
34
  end
23
35
  end
24
36
 
37
+ $mtc_location.each do |k,v|
38
+ $mtc_location[k] = v.uniq.sort.first
39
+ end
40
+
25
41
  require "coverage/pruner"
@@ -14,6 +14,15 @@ ARGV.each do |input_path|
14
14
  end
15
15
  end
16
16
 
17
+ begin
18
+ require "simplecov"
19
+ SimpleCov.command_name "Minitest"
20
+ SimpleCov.add_filter "/test/"
21
+ SimpleCov::Formatter::HTMLFormatter.new.format SimpleCov::Result.new data
22
+ rescue LoadError
23
+ warn "NOTE: simplecov not found. Unable to generate HTML report."
24
+ end
25
+
17
26
  puts "uncv covr% totl : path"
18
27
  puts
19
28
  puts data.map { |path, lines|
@@ -8,6 +8,10 @@ at_exit { # get behind minitest if we're running alongside
8
8
  at_exit {
9
9
  coverage = Coverage.result.reject(&pruner)
10
10
 
11
+ if defined? $mtc_location then
12
+ coverage[:mtc_location] = $mtc_location
13
+ end
14
+
11
15
  File.open "coverage.json", "w" do |f|
12
16
  f.puts JSON.pretty_generate coverage
13
17
  end
@@ -2,7 +2,7 @@ module Minitest; end
2
2
 
3
3
  module Minitest
4
4
  module CoverageRunner
5
- VERSION = "1.0.0.b1"
5
+ VERSION = "1.0.0.b2"
6
6
 
7
7
  def self.coverage_baseline
8
8
  @@coverage_baseline
@@ -61,3 +61,6 @@
61
61
 
62
62
  ;; (with-current-buffer (window-buffer (next-window)) (mtc-update))
63
63
  ;; (with-current-buffer (window-buffer (next-window)) (mtc-clear))
64
+
65
+ ;; (global-set-key (kbd "C-c u") 'mtc-update)
66
+ ;; (global-set-key (kbd "C-c U") 'mtc-clear)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-coverage
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.b1
4
+ version: 1.0.0.b2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
@@ -30,22 +30,36 @@ cert_chain:
30
30
  E4oJcnPkJAr0rw504JGtlZtONZQblwmRJOIdXzolaE3NRGUzGVOUSptZppAKiavY
31
31
  fO6tdKQc/5RfA8oQEkg8hrxA5PQSz4TOFJGLpFvIapEk6tMruQ0bHgkhr9auXg==
32
32
  -----END CERTIFICATE-----
33
- date: 2016-11-10 00:00:00.000000000 Z
33
+ date: 2017-05-09 00:00:00.000000000 Z
34
34
  dependencies:
35
+ - !ruby/object:Gem::Dependency
36
+ name: rdoc
37
+ requirement: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '4.0'
42
+ type: :development
43
+ prerelease: false
44
+ version_requirements: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: '4.0'
35
49
  - !ruby/object:Gem::Dependency
36
50
  name: hoe
37
51
  requirement: !ruby/object:Gem::Requirement
38
52
  requirements:
39
- - - ~>
53
+ - - "~>"
40
54
  - !ruby/object:Gem::Version
41
- version: '3.15'
55
+ version: '3.16'
42
56
  type: :development
43
57
  prerelease: false
44
58
  version_requirements: !ruby/object:Gem::Requirement
45
59
  requirements:
46
- - - ~>
60
+ - - "~>"
47
61
  - !ruby/object:Gem::Version
48
- version: '3.15'
62
+ version: '3.16'
49
63
  description: |-
50
64
  Ruby's contemporary test coverage tools all lie, exaggerating coverage
51
65
  through false-positives and creating a false sense of security;
@@ -71,7 +85,7 @@ extra_rdoc_files:
71
85
  - Manifest.txt
72
86
  - README.rdoc
73
87
  files:
74
- - .autotest
88
+ - ".autotest"
75
89
  - History.rdoc
76
90
  - Manifest.txt
77
91
  - README.rdoc
@@ -98,23 +112,23 @@ licenses:
98
112
  metadata: {}
99
113
  post_install_message:
100
114
  rdoc_options:
101
- - --main
115
+ - "--main"
102
116
  - README.rdoc
103
117
  require_paths:
104
118
  - lib
105
119
  required_ruby_version: !ruby/object:Gem::Requirement
106
120
  requirements:
107
- - - '>='
121
+ - - "~>"
108
122
  - !ruby/object:Gem::Version
109
- version: '0'
123
+ version: '2.3'
110
124
  required_rubygems_version: !ruby/object:Gem::Requirement
111
125
  requirements:
112
- - - '>'
126
+ - - ">"
113
127
  - !ruby/object:Gem::Version
114
128
  version: 1.3.1
115
129
  requirements: []
116
130
  rubyforge_project:
117
- rubygems_version: 2.4.5
131
+ rubygems_version: 2.6.8
118
132
  signing_key:
119
133
  specification_version: 4
120
134
  summary: Ruby's contemporary test coverage tools all lie, exaggerating coverage through
metadata.gz.sig CHANGED
Binary file