minitest-reporters 1.1.16 → 1.1.17
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f660e73f8a673797576d1099958a20af53eedc35
|
4
|
+
data.tar.gz: b9fd8e8d77a519a2c5a4bf004b76f386b16f51a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1210b931bec5ccfeba5aab2800a7f2725d9f4e887857ff964de68aa854425a18f68d81e3ede7badcfeb6ab2076fa1db457813d84ec180ec0b643582a9d5d1975
|
7
|
+
data.tar.gz: 7342070e0e136816c5f3c852a758a6f21932599d16034ff50e002473f126c8ca087b7c35b695b932f7d9338c4b8896d8d6a265b305712c7849c6111202afbff6
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,13 @@
|
|
1
|
-
|
1
|
+
### [1.1.17](https://github.com/kern/minitest-reporters/compare/v1.1.16...v1.1.17)
|
2
2
|
|
3
|
-
*
|
3
|
+
* Fixed tests' counting [#232](https://github.com/kern/minitest-reporters/pull/232) (contributed by [adaedra](https://github.com/adaedra))
|
4
|
+
|
5
|
+
### [1.1.16](https://github.com/kern/minitest-reporters/compare/v1.1.15...v1.1.16)
|
6
|
+
|
7
|
+
* reverted fix for [#231](https://github.com/kern/minitest-reporters/pull/231) to fix[#233](https://github.com/kern/minitest-reporters/pull/233)
|
4
8
|
|
5
9
|
## [1.1.15](https://github.com/kern/minitest-reporters/compare/v1.1.14...v1.1.15)
|
6
10
|
|
7
|
-
* Fixed problem with handling SIGINFO [#231](
|
11
|
+
* Fixed problem with handling SIGINFO [#231](https://github.com/kern/minitest-reporters/pull/231) (contributed by [joshpencheon](https://github.com/joshpencheon))
|
8
12
|
|
9
13
|
|
@@ -36,9 +36,11 @@ module Minitest
|
|
36
36
|
filter = options[:filter] || '/./'
|
37
37
|
filter = Regexp.new $1 if filter =~ /\/(.*)\//
|
38
38
|
|
39
|
-
Minitest::Runnable.runnables.map
|
40
|
-
|
41
|
-
|
39
|
+
Minitest::Runnable.runnables.map { |runnable|
|
40
|
+
runnable.runnable_methods.find_all { |m|
|
41
|
+
filter === m || filter === "#{runnable}##{m}"
|
42
|
+
}.size
|
43
|
+
}.inject(:+)
|
42
44
|
end
|
43
45
|
|
44
46
|
def all_reporters
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'minitest'
|
2
|
+
require 'minitest/reporters'
|
3
|
+
require 'minitest/autorun'
|
4
|
+
|
5
|
+
Minitest::Reporters.use! Minitest::Reporters::ProgressReporter.new
|
6
|
+
|
7
|
+
describe String do
|
8
|
+
describe '#length' do
|
9
|
+
it 'works' do
|
10
|
+
assert_equal 5, 'hello'.length
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -18,5 +18,17 @@ module MinitestReportersTest
|
|
18
18
|
assert_match 'FAIL["test_failure"', output, 'Failures should be displayed'
|
19
19
|
refute_match 'SKIP["test_skip', output, 'Skipped tests should not be displayed'
|
20
20
|
end
|
21
|
+
def test_progress_works_with_filter_and_specs
|
22
|
+
fixtures_directory = File.expand_path('../../../fixtures', __FILE__)
|
23
|
+
test_filename = File.join(fixtures_directory, 'spec_test.rb')
|
24
|
+
output = `ruby #{test_filename} -n /length/ 2>&1`
|
25
|
+
refute_match '0 out of 0', output, 'Progress should not puts a warning'
|
26
|
+
end
|
27
|
+
def test_progress_works_with_strict_filter
|
28
|
+
fixtures_directory = File.expand_path('../../../fixtures', __FILE__)
|
29
|
+
test_filename = File.join(fixtures_directory, 'spec_test.rb')
|
30
|
+
output = `ruby #{test_filename} -n /^test_0001_works$/ 2>&1`
|
31
|
+
refute_match '0 out of 0', output, 'Progress should not puts a warning'
|
32
|
+
end
|
21
33
|
end
|
22
34
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-reporters
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Kern
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -137,6 +137,7 @@ files:
|
|
137
137
|
- test/fixtures/progress_detailed_skip_test.rb
|
138
138
|
- test/fixtures/progress_test.rb
|
139
139
|
- test/fixtures/sample_test.rb
|
140
|
+
- test/fixtures/spec_test.rb
|
140
141
|
- test/gallery/bad_test.rb
|
141
142
|
- test/gallery/good_test.rb
|
142
143
|
- test/integration/reporters/junit_reporter_test.rb
|