minitest-reporters 1.0.3 → 1.0.4

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: 05d45de95aebdd43a75b94d51b6cf93e267150f2
4
- data.tar.gz: d30f23b6c4eb9583a691eb2fddbebc3464d37ede
3
+ metadata.gz: 94968d2c922263e975f79ff3383a03478408a9ab
4
+ data.tar.gz: bc631608d49161a8ab00a423faaadf869b888f9c
5
5
  SHA512:
6
- metadata.gz: d5d479974d16b0e3763647e9174131178ac3e537a18f740d4e3de3801add54971517880262479beb5c29728bdd321f4a7677df2d7c15218d3b97e41d0e72169d
7
- data.tar.gz: cfd92d468e6603a4d7a2b70781d00973a76848bc88dd6d17c466ef460a2beb6466b1b80ea2a3de5e76944a4dc88637ee523e71f43ca958fb9b17fd6bbd1cb140
6
+ metadata.gz: e456ef7009a0dac54ed9c34c94deaaedf96dfa8ffd0a40da9477c6d11371f52c344dfe0542540215736e0ee45c6d66f5de728296c83eeea87fc31ad7ba2a891d
7
+ data.tar.gz: 7000fa88f6a8e80ddc04c871d08ee35e2c8ab062de084e7be212b7bcd4b157f1ef9e38fbab4c4df3abcccac25eca5f669aed2468d7836272c4276431a8589d80
data/Rakefile CHANGED
@@ -28,6 +28,7 @@ task :gallery do
28
28
  end
29
29
 
30
30
  [
31
+ "Pride",
31
32
  "DefaultReporter",
32
33
  "JUnitReporter",
33
34
  "ProgressReporter",
@@ -1,8 +1,4 @@
1
- begin
2
- require "minitest/autorun"
3
- rescue
4
- require "minitest/unit"
5
- end
1
+ require 'minitest'
6
2
 
7
3
  module Minitest
8
4
  require "minitest/relative_position"
@@ -162,7 +162,7 @@ module Minitest
162
162
  elsif test.error?
163
163
  "Error:\n#{test.class}##{test.name}:\n#{e.message}"
164
164
  else
165
- "Failure:\n#{test.class}##{test.name}:\n#{e.class}: #{e.message}"
165
+ "Failure:\n#{test.class}##{test.name} [#{test.failure.location}]\n#{e.class}: #{e.message}"
166
166
  end
167
167
  end
168
168
 
@@ -1,5 +1,5 @@
1
1
  module Minitest
2
2
  module Reporters
3
- VERSION = '1.0.3'
3
+ VERSION = '1.0.4'
4
4
  end
5
5
  end
data/test/test_helper.rb CHANGED
@@ -11,7 +11,9 @@ end
11
11
  # brittle. Consequently, there are no unit tests for them. If you'd like to run
12
12
  # all the reporters sequentially on a fake test suite, run `rake gallery`.
13
13
 
14
- if ENV["REPORTER"]
14
+ if ENV["REPORTER"] == "Pride"
15
+ require "minitest/pride"
16
+ elsif ENV["REPORTER"]
15
17
  reporter_klass = Minitest::Reporters.const_get(ENV["REPORTER"])
16
18
  Minitest::Reporters.use!(reporter_klass.new)
17
19
  else
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.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Kern
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-22 00:00:00.000000000 Z
11
+ date: 2014-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest