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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 10c13a57823cc69a5f0bfb262dcfb3c7b6b6f817
4
- data.tar.gz: a2df404cc613cb6091a0c02507e8b90a40b8af49
3
+ metadata.gz: ea87278aa0bfe4804534d2c9eaf47022b18faaf9
4
+ data.tar.gz: bf064d5ad63d8f4a51a0c4767e8c928d177bc296
5
5
  SHA512:
6
- metadata.gz: 79c136e7fec5fdb7bd815fa3358531deae13fc391232f2bf297c158594cd6c3033acfb23e5b587fa3807a288aeaf3a3a0a907153371aa734f54ac61b64899a7d
7
- data.tar.gz: 0dd5b1956e62c683adc55f44df3b738681d825df3a40d468c6adceb9574618a35cd458677a74cc1cae702a8a391d4faef072a404783bbc3b28f660ad7eac598a
6
+ metadata.gz: da767bd383e089a21048549af80158c707b5be398f6306a57774bafd4200bbb784d821f0cff8e9cee5793ce2633d79e8247494205935833710caf6d4d5a23a46
7
+ data.tar.gz: ec795328a069cba3fd273303f597aa5505e7cd3c12b5ace809a684d2363eccf1674f9982d4310ba2feff37ec092f56cdc7a8dbb0c03444067e6c17d80dc76894
@@ -1,5 +1,11 @@
1
1
  language: ruby
2
2
  sudo: false
3
+ before_install:
4
+ - gem update --system
5
+ - gem update bundler
3
6
  rvm:
4
- - 2.1.5
5
- - 2.2.0
7
+ - 2.1.10
8
+ - 2.2.8
9
+ - 2.3.5
10
+ - 2.4.2
11
+ - 2.5.0
@@ -1,3 +1,7 @@
1
1
  ## 0.2.0
2
2
 
3
+ * Add support for Minitest 5.11
4
+
5
+ ## 0.1.0
6
+
3
7
  * Add `exclude_test_name` option
data/Rakefile CHANGED
@@ -5,4 +5,5 @@ task default: :test
5
5
  Rake::TestTask.new do |t|
6
6
  t.pattern = "test/**/*_test.rb"
7
7
  t.verbose = true
8
+ t.warning = true
8
9
  end
@@ -11,7 +11,8 @@ module Minitest
11
11
  def report
12
12
  super
13
13
  @slow_test_list.each do |slow_test|
14
- io.print "[SlowTest] %s#%s : %.2fs\n" % [slow_test.class, slow_test.name, slow_test.time]
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
 
@@ -1,5 +1,5 @@
1
1
  module Minitest
2
2
  module SlowTest
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -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 /\[SlowTest\] SampleTest#test_slow/, @output.string
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 /\[SlowTest\] SampleTest#test_slow/, @output.string
34
- refute_match /\[SlowTest\] SampleTest#test_more_slow/, @output.string
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.1.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: 2015-07-02 00:00:00.000000000 Z
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.4.5
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.