minitest-slow_test 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +8 -2
- data/CHANGELOG.md +4 -0
- data/Rakefile +1 -0
- data/lib/minitest/slow_test/reporter.rb +2 -1
- data/lib/minitest/slow_test/version.rb +1 -1
- data/test/slow_test_test.rb +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea87278aa0bfe4804534d2c9eaf47022b18faaf9
|
4
|
+
data.tar.gz: bf064d5ad63d8f4a51a0c4767e8c928d177bc296
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da767bd383e089a21048549af80158c707b5be398f6306a57774bafd4200bbb784d821f0cff8e9cee5793ce2633d79e8247494205935833710caf6d4d5a23a46
|
7
|
+
data.tar.gz: ec795328a069cba3fd273303f597aa5505e7cd3c12b5ace809a684d2363eccf1674f9982d4310ba2feff37ec092f56cdc7a8dbb0c03444067e6c17d80dc76894
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Rakefile
CHANGED
@@ -11,7 +11,8 @@ module Minitest
|
|
11
11
|
def report
|
12
12
|
super
|
13
13
|
@slow_test_list.each do |slow_test|
|
14
|
-
|
14
|
+
klass = slow_test.respond_to?(:klass) ? slow_test.klass : slow_test.class
|
15
|
+
io.print "[SlowTest] %s#%s : %.2fs\n" % [klass, slow_test.name, slow_test.time]
|
15
16
|
end
|
16
17
|
end
|
17
18
|
|
data/test/slow_test_test.rb
CHANGED
@@ -21,7 +21,7 @@ module MinitestSlowTestTest
|
|
21
21
|
reporter.start
|
22
22
|
reporter.record(SampleTest.new(:test_slow).run)
|
23
23
|
reporter.report
|
24
|
-
assert_match
|
24
|
+
assert_match(/\[SlowTest\] SampleTest#test_slow/, @output.string)
|
25
25
|
end
|
26
26
|
|
27
27
|
def test_exclude_test_information_do_not_display
|
@@ -30,8 +30,8 @@ module MinitestSlowTestTest
|
|
30
30
|
reporter.record(SampleTest.new(:test_slow).run)
|
31
31
|
reporter.record(SampleTest.new(:test_more_slow).run)
|
32
32
|
reporter.report
|
33
|
-
assert_match
|
34
|
-
refute_match
|
33
|
+
assert_match(/\[SlowTest\] SampleTest#test_slow/, @output.string)
|
34
|
+
refute_match(/\[SlowTest\] SampleTest#test_more_slow/, @output.string)
|
35
35
|
end
|
36
36
|
end
|
37
37
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-slow_test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuji Yaginuma
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
106
|
version: '0'
|
107
107
|
requirements: []
|
108
108
|
rubyforge_project:
|
109
|
-
rubygems_version: 2.
|
109
|
+
rubygems_version: 2.6.13
|
110
110
|
signing_key:
|
111
111
|
specification_version: 4
|
112
112
|
summary: Display the summary of a slow test when tests finished.
|