guard-minitest 1.0.0.beta.2 → 1.0.0.rc.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -5
- data/README.md +6 -2
- data/lib/guard/minitest/reporter.rb +5 -9
- data/lib/guard/minitest/reporters/old_reporter.rb +23 -0
- data/lib/guard/minitest/runner.rb +1 -1
- data/lib/guard/minitest/version.rb +1 -1
- data/lib/minitest/guard_minitest_plugin.rb +5 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26d1ae65dbb25c1be2698a1d40c994b7e94f31de
|
4
|
+
data.tar.gz: 89dd553b0594d66d1615235f54b514d998e5a1fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1cdc8e390d8f06b3cf5f222386af685c92e1c13bec63ccabbc89d325b1460b6816ebb2e3f39c6dcee3f471381563692d79a379d8dec82bb7104a34ab57ae8ec9
|
7
|
+
data.tar.gz: 8bee6b5f953e4f37c8f03638dd6a1669759ca22fda7fab77741445d36b8ba8c82c30da47cdb225e40b047ac12d5f36f4e9c5982f9ed3ee6c7959ad832ebdb3e5
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,15 @@
|
|
1
1
|
## Unreleased Changes
|
2
2
|
|
3
|
-
[Full Changelog](https://github.com/guard/guard-minitest/compare/v1.0.0.
|
3
|
+
[Full Changelog](https://github.com/guard/guard-minitest/compare/v1.0.0.rc.1...master)
|
4
|
+
|
5
|
+
## 1.0.0.rc.1 - Jun 19, 2013
|
6
|
+
|
7
|
+
[Full Changelog](https://github.com/guard/guard-minitest/compare/v1.0.0.beta.2...v1.0.0.rc.1)
|
8
|
+
|
9
|
+
### Bug fixes
|
10
|
+
|
11
|
+
* [#65][] Use `Minitest::StatisticsReporter` instead of `Minitest::Reporter` for Minitest > 5.0. ([@kejadlen][])
|
12
|
+
* [#66][] Don't use the `--pride` option for Minitest < 5.0. ([@sbl][])
|
4
13
|
|
5
14
|
## 1.0.0.beta.2 - Jun 5, 2013
|
6
15
|
|
@@ -12,12 +21,12 @@
|
|
12
21
|
* [#39][] Fix `watch` `Regex` for `lib` directory. ([@rymai][])
|
13
22
|
* [#51][] Add color using the pride Minitest plugin (`--pride` option). ([@rymai][])
|
14
23
|
* [#59][] Update spring command from test to testunit. ([@sbrink][])
|
15
|
-
* [#57][]
|
24
|
+
* [#57][] Add support for spring. ([@aspiers][])
|
16
25
|
* [#56][] Include test directory in load path when DRb used. ([@sbleon][])
|
17
|
-
* [#54][]
|
26
|
+
* [#54][] Add support for zeus. ([@leemhenson][])
|
18
27
|
* [#55][] Add `:all_on_start` option. ([@aflock][])
|
19
28
|
* [#41][] Simplifying the DRb version of the runner. ([@chadoh][])
|
20
|
-
* [#38][]
|
29
|
+
* [#38][] Improve notification message formatting. ([@arronmabrey][])
|
21
30
|
|
22
31
|
## 1.0.0.beta1 - Dec 10, 2012
|
23
32
|
|
@@ -123,17 +132,21 @@ First stable release.
|
|
123
132
|
[#57]: https://github.com/guard/guard/issues/57
|
124
133
|
[#59]: https://github.com/guard/guard/issues/59
|
125
134
|
[#62]: https://github.com/guard/guard/issues/62
|
135
|
+
[#65]: https://github.com/guard/guard/issues/65
|
136
|
+
[#66]: https://github.com/guard/guard/issues/66
|
126
137
|
[@aflock]: https://github.com/aflock
|
127
138
|
[@arronmabrey]: https://github.com/arronmabrey
|
128
139
|
[@aspiers]: https://github.com/aspiers
|
129
140
|
[@chadoh]: https://github.com/chadoh
|
130
141
|
[@itzki]: https://github.com/itzki
|
131
142
|
[@japgolly]: https://github.com/japgolly
|
143
|
+
[@kejadlen]: https://github.com/kejadlen
|
132
144
|
[@leemhenson]: https://github.com/leemhenson
|
133
145
|
[@manewitz]: https://github.com/manewitz
|
134
146
|
[@rymai]: https://github.com/rymai
|
147
|
+
[@sbl]: https://github.com/sbl
|
135
148
|
[@sbleon]: https://github.com/sbleon
|
136
149
|
[@sbrink]: https://github.com/sbrink
|
137
150
|
[@sometimesfood]: https://github.com/sometimesfood
|
138
151
|
[@statianzo]: https://github.com/statianzo
|
139
|
-
[@yannlugrin]: https://github.com/yannlugrin
|
152
|
+
[@yannlugrin]: https://github.com/yannlugrin
|
data/README.md
CHANGED
@@ -106,8 +106,8 @@ end
|
|
106
106
|
|
107
107
|
[Zeus](https://github.com/burke/zeus) is supported, but you must enable it.
|
108
108
|
Please note that notification are currently disabled when using Zeus, if
|
109
|
-
you're interested in adding notification support for Zeus, please
|
110
|
-
|
109
|
+
you're interested in adding notification support for Zeus, please
|
110
|
+
[open a new issue](https://github.com/guard/guard-minitest/issues/new).
|
111
111
|
|
112
112
|
```ruby
|
113
113
|
guard :minitest, :zeus => true do
|
@@ -123,6 +123,10 @@ guard :minitest, :drb => true do
|
|
123
123
|
end
|
124
124
|
```
|
125
125
|
|
126
|
+
## Roadmap
|
127
|
+
|
128
|
+
* Add notification support when using `zeus`.
|
129
|
+
|
126
130
|
## Development
|
127
131
|
|
128
132
|
* Documentation hosted at [RubyDoc](http://rubydoc.info/github/guard/guard-minitest/master/frames).
|
@@ -4,18 +4,14 @@ require 'guard/minitest/notifier'
|
|
4
4
|
|
5
5
|
module Guard
|
6
6
|
class Minitest
|
7
|
-
class Reporter < ::Minitest::
|
7
|
+
class Reporter < ::Minitest::StatisticsReporter
|
8
8
|
|
9
9
|
def report
|
10
|
-
|
11
|
-
aggregate.default = [] # dumb. group_by should provide this
|
10
|
+
super
|
12
11
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
t = Time.now - start_time
|
17
|
-
|
18
|
-
::Guard::Minitest::Notifier.notify(count, self.assertions, f, e, s, t)
|
12
|
+
::Guard::Minitest::Notifier.notify(self.count, self.assertions,
|
13
|
+
self.failures, self.errors,
|
14
|
+
self.skips, self.total_time)
|
19
15
|
end
|
20
16
|
|
21
17
|
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require 'minitest'
|
3
|
+
require 'guard/minitest/notifier'
|
4
|
+
|
5
|
+
module Guard
|
6
|
+
class Minitest
|
7
|
+
class Reporter < ::Minitest::Reporter
|
8
|
+
|
9
|
+
def report
|
10
|
+
aggregate = results.group_by { |r| r.failure.class }
|
11
|
+
aggregate.default = [] # dumb. group_by should provide this
|
12
|
+
|
13
|
+
f = aggregate[::Minitest::Assertion].size
|
14
|
+
e = aggregate[::Minitest::UnexpectedError].size
|
15
|
+
s = aggregate[::Minitest::Skip].size
|
16
|
+
t = Time.now - start_time
|
17
|
+
|
18
|
+
::Guard::Minitest::Notifier.notify(count, self.assertions, f, e, s, t)
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -108,13 +108,13 @@ module Guard
|
|
108
108
|
cmd_parts += paths.map { |path| "-r ./#{path}" }
|
109
109
|
if ::MiniTest::Unit::VERSION =~ /^5/
|
110
110
|
cmd_parts << '-e \'Minitest.autorun\''
|
111
|
+
cmd_parts << '--pride' # uses pride for output colorization
|
111
112
|
else
|
112
113
|
cmd_parts << "-r #{File.expand_path('../runners/old_runner.rb', __FILE__)}"
|
113
114
|
cmd_parts << '-e \'MiniTest::Unit.autorun\''
|
114
115
|
end
|
115
116
|
cmd_parts << '--'
|
116
117
|
cmd_parts += cli_options
|
117
|
-
cmd_parts << '--pride' # uses pride for output colorization
|
118
118
|
end
|
119
119
|
|
120
120
|
def relative_paths(paths)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-minitest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.rc.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yann Lugrin
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-06-
|
12
|
+
date: 2013-06-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: guard
|
@@ -64,6 +64,7 @@ files:
|
|
64
64
|
- lib/guard/minitest/inspector.rb
|
65
65
|
- lib/guard/minitest/notifier.rb
|
66
66
|
- lib/guard/minitest/reporter.rb
|
67
|
+
- lib/guard/minitest/reporters/old_reporter.rb
|
67
68
|
- lib/guard/minitest/runner.rb
|
68
69
|
- lib/guard/minitest/runners/old_runner.rb
|
69
70
|
- lib/guard/minitest/templates/Guardfile
|