minitest-reporters 0.14.6 → 0.14.7
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +19 -11
- data/lib/minitest/reporter_runner.rb +2 -0
- data/lib/minitest/reporters/version.rb +1 -1
- metadata +4 -4
data/README.md
CHANGED
@@ -11,28 +11,36 @@ Death to haphazard monkey-patching! Extend MiniTest through simple hooks.
|
|
11
11
|
|
12
12
|
In your `test_helper.rb` file, add the following lines:
|
13
13
|
|
14
|
-
|
15
|
-
|
14
|
+
```ruby
|
15
|
+
require "minitest/reporters"
|
16
|
+
MiniTest::Reporters.use!
|
17
|
+
```
|
16
18
|
|
17
19
|
This will swap out the MiniTest runner to the custom one used by minitest-reporters and use the correct reporters for Textmate, Rubymine, and the console. If you would like to write your own reporter, just `include MiniTest::Reporter` and override the methods you'd like. Take a look at the provided reporters for examples.
|
18
20
|
|
19
21
|
Don't like the default progress bar reporter?
|
20
22
|
|
21
|
-
|
23
|
+
```ruby
|
24
|
+
MiniTest::Reporters.use! MiniTest::Reporters::SpecReporter.new
|
25
|
+
```
|
22
26
|
|
23
27
|
Want to use multiple reporters?
|
24
28
|
|
25
|
-
|
29
|
+
```ruby
|
30
|
+
MiniTest::Reporters.use! [MiniTest::Reporters::SpecReporter.new, MiniTest::Reporters::GuardReporter.new]
|
31
|
+
```
|
26
32
|
|
27
33
|
The following reporters are provided:
|
28
34
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
35
|
+
```ruby
|
36
|
+
MiniTest::Reporters::DefaultReporter # => Redgreen version of standard MiniTest reporter
|
37
|
+
MiniTest::Reporters::SpecReporter # => Turn-like output that reads like a spec
|
38
|
+
MiniTest::Reporters::ProgressReporter # => Fuubar-like output with a progress bar
|
39
|
+
MiniTest::Reporters::RubyMateReporter # => Simple reporter designed for RubyMate
|
40
|
+
MiniTest::Reporters::RubyMineReporter # => Reporter designed for RubyMine IDE and TeamCity CI server
|
41
|
+
MiniTest::Reporters::GuardReporter # => Integrates with guard-minitest to provide on-screen notifications
|
42
|
+
MiniTest::Reporters::JUnitReporter # => JUnit test reporter designed for JetBrains TeamCity
|
43
|
+
```
|
36
44
|
|
37
45
|
## Note on Patches/Pull Requests ##
|
38
46
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-reporters
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.
|
4
|
+
version: 0.14.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|
@@ -164,7 +164,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
164
164
|
version: '0'
|
165
165
|
segments:
|
166
166
|
- 0
|
167
|
-
hash: -
|
167
|
+
hash: -1014601908327650924
|
168
168
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
169
169
|
none: false
|
170
170
|
requirements:
|
@@ -173,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
173
173
|
version: '0'
|
174
174
|
segments:
|
175
175
|
- 0
|
176
|
-
hash: -
|
176
|
+
hash: -1014601908327650924
|
177
177
|
requirements: []
|
178
178
|
rubyforge_project: minitest-reporters
|
179
179
|
rubygems_version: 1.8.24
|