guard-test 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +9 -1
- data/README.md +7 -0
- data/lib/guard/test/runner.rb +16 -5
- data/lib/guard/test/version.rb +1 -1
- metadata +15 -28
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: c0b391903aa1f63be537740154758f33db957d24
|
4
|
+
data.tar.gz: 3b456fecfc51297f139c68c249a2fd11a83dcc81
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8eae6956b94da9f060156897313a279af262cb563daaa3dfecb402411c704f7c3d95931559b19b78bf70d14888352a082de56df63c90a934539abfc218b85655
|
7
|
+
data.tar.gz: 7488f582c2bd953abd568f59fe624392c66d72f1a7cba15f48c4883f7dbca4ec0dc368d6a05bab32103e685cb441900eaf46dd5c872dca7a45f57bffc34f0278
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## 0.8.0 - March 24, 2013
|
2
|
+
|
3
|
+
### New feature:
|
4
|
+
|
5
|
+
- [#38][]: Add support for running tests via `zeus`. ([@djmaze][])
|
6
|
+
|
1
7
|
## 0.7.0 - November 6, 2012
|
2
8
|
|
3
9
|
### New feature:
|
@@ -145,14 +151,16 @@
|
|
145
151
|
[#24]: https://github.com/guard/guard/issues/24
|
146
152
|
[#34]: https://github.com/guard/guard/issues/34
|
147
153
|
[#35]: https://github.com/guard/guard/issues/35
|
154
|
+
[#38]: https://github.com/guard/guard/issues/38
|
148
155
|
[@Ask11]: https://github.com/Ask11
|
149
156
|
[@amiel]: https://github.com/amiel
|
150
157
|
[@carlost]: https://github.com/carlost
|
151
158
|
[@coderjoe]: https://github.com/coderjoe
|
152
159
|
[@dasch]: https://github.com/dasch
|
160
|
+
[@djmaze]: https://github.com/djmaze
|
153
161
|
[@gertas]: https://github.com/gertas
|
154
162
|
[@gregorymostizky]: https://github.com/gregorymostizky
|
155
163
|
[@jgrau]: https://github.com/jgrau
|
156
164
|
[@pastorius]: https://github.com/pastorius
|
157
165
|
[@rymai]: https://github.com/rymai
|
158
|
-
[@uk-ar]: https://github.com/uk-ar
|
166
|
+
[@uk-ar]: https://github.com/uk-ar
|
data/README.md
CHANGED
@@ -87,6 +87,7 @@ Please read the [Guard documentation](https://github.com/guard/guard#readme) for
|
|
87
87
|
* `rubygems` (`Boolean`) - Whether or not to require rubygems (if bundler isn't used) when running the tests. Default to `false`.
|
88
88
|
* `rvm` (`Array<String>`) - Directly run your specs against multiple Rubies. Default to `nil`.
|
89
89
|
* `drb` (`Boolean`) - Run your tests with [`spork-testunit`](https://github.com/timcharper/spork-testunit). Default to `false`.
|
90
|
+
* `zeus` (`Boolean`) - Run your tests with [`zeus`](https://github.com/burke/zeus). Default to `false`.
|
90
91
|
* `include` (`Array<String>`) - Pass arbitrary include paths to the command that runs the tests. Default to `['test']`.
|
91
92
|
* `cli` (`String`) - Pass arbitrary CLI arguments to the command that runs the tests. Default to `nil`.
|
92
93
|
* `all_on_start` (`Boolean`) - Run all tests on Guard startup. Default to `true`.
|
@@ -98,6 +99,12 @@ Please read the [Guard documentation](https://github.com/guard/guard#readme) for
|
|
98
99
|
|
99
100
|
When true, notifications are disabled. This might be fixed in future releases.
|
100
101
|
|
102
|
+
#### `zeus` option
|
103
|
+
|
104
|
+
When true, the `include` option is disregarded, as it does not work with `zeus`' test runner.
|
105
|
+
|
106
|
+
The zeus server process (`zeus start`) must already be running in another terminal.
|
107
|
+
|
101
108
|
#### `test_paths` option
|
102
109
|
|
103
110
|
By default, guard-test will only look for test files within `test/` in your project root. You can add any paths using the `:test_paths` option:
|
data/lib/guard/test/runner.rb
CHANGED
@@ -11,6 +11,7 @@ module Guard
|
|
11
11
|
:rvm => [],
|
12
12
|
:include => ['test'],
|
13
13
|
:drb => false,
|
14
|
+
:zeus => false,
|
14
15
|
:cli => ''
|
15
16
|
}.merge(options)
|
16
17
|
end
|
@@ -25,13 +26,13 @@ module Guard
|
|
25
26
|
|
26
27
|
def bundler?
|
27
28
|
if @bundler.nil?
|
28
|
-
@bundler = @options[:bundler] && !drb?
|
29
|
+
@bundler = @options[:bundler] && !drb? && !zeus?
|
29
30
|
end
|
30
31
|
@bundler
|
31
32
|
end
|
32
33
|
|
33
34
|
def rubygems?
|
34
|
-
!bundler? && @options[:rubygems]
|
35
|
+
!bundler? && !zeus? && @options[:rubygems]
|
35
36
|
end
|
36
37
|
|
37
38
|
def drb?
|
@@ -46,6 +47,14 @@ module Guard
|
|
46
47
|
@drb
|
47
48
|
end
|
48
49
|
|
50
|
+
def zeus?
|
51
|
+
if @zeus.nil?
|
52
|
+
@zeus = @options[:zeus]
|
53
|
+
::Guard::UI.info('Using zeus to run the tests') if @zeus
|
54
|
+
end
|
55
|
+
@zeus
|
56
|
+
end
|
57
|
+
|
49
58
|
private
|
50
59
|
|
51
60
|
def test_unit_command(paths)
|
@@ -55,21 +64,23 @@ module Guard
|
|
55
64
|
cmd_parts << case true
|
56
65
|
when drb?
|
57
66
|
'testdrb'
|
67
|
+
when zeus?
|
68
|
+
'zeus test'
|
58
69
|
else
|
59
70
|
'ruby'
|
60
71
|
end
|
61
|
-
cmd_parts << Array(@options[:include]).map { |path| "-I#{path}" }
|
72
|
+
cmd_parts << Array(@options[:include]).map { |path| "-I#{path}" } unless zeus?
|
62
73
|
cmd_parts << '-r bundler/setup' if bundler?
|
63
74
|
cmd_parts << '-rubygems' if rubygems?
|
64
75
|
|
65
|
-
unless drb?
|
76
|
+
unless drb? || zeus?
|
66
77
|
cmd_parts << "-r #{File.expand_path("../guard_test_runner", __FILE__)}"
|
67
78
|
cmd_parts << "-e \"%w[#{paths.join(' ')}].each { |p| load p }\""
|
68
79
|
end
|
69
80
|
|
70
81
|
paths.each { |path| cmd_parts << "\"./#{path}\"" }
|
71
82
|
|
72
|
-
unless drb?
|
83
|
+
unless drb? || zeus?
|
73
84
|
cmd_parts << '--use-color'
|
74
85
|
cmd_parts << '--runner=guard'
|
75
86
|
end
|
data/lib/guard/test/version.rb
CHANGED
metadata
CHANGED
@@ -1,36 +1,32 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.8.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Rémy Coutable
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-03-24 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: guard
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '1.1'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '1.1'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: test-unit
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - ~>
|
36
32
|
- !ruby/object:Gem::Version
|
@@ -38,7 +34,6 @@ dependencies:
|
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - ~>
|
44
39
|
- !ruby/object:Gem::Version
|
@@ -46,35 +41,31 @@ dependencies:
|
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: bundler
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - '>='
|
52
46
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
47
|
+
version: '0'
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - '>='
|
60
53
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
54
|
+
version: '0'
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: rspec
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
59
|
- - ~>
|
68
60
|
- !ruby/object:Gem::Version
|
69
|
-
version: '2.
|
61
|
+
version: '2.13'
|
70
62
|
type: :development
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
66
|
- - ~>
|
76
67
|
- !ruby/object:Gem::Version
|
77
|
-
version: '2.
|
68
|
+
version: '2.13'
|
78
69
|
description: Guard::Test automatically run your tests on file modification.
|
79
70
|
email:
|
80
71
|
- remy@rymai.me
|
@@ -100,29 +91,25 @@ files:
|
|
100
91
|
- README.md
|
101
92
|
homepage: http://rubygems.org/gems/guard-test
|
102
93
|
licenses: []
|
94
|
+
metadata: {}
|
103
95
|
post_install_message:
|
104
96
|
rdoc_options: []
|
105
97
|
require_paths:
|
106
98
|
- lib
|
107
99
|
required_ruby_version: !ruby/object:Gem::Requirement
|
108
|
-
none: false
|
109
100
|
requirements:
|
110
|
-
- -
|
101
|
+
- - '>='
|
111
102
|
- !ruby/object:Gem::Version
|
112
103
|
version: '0'
|
113
|
-
segments:
|
114
|
-
- 0
|
115
|
-
hash: -2081366749670452431
|
116
104
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
117
|
-
none: false
|
118
105
|
requirements:
|
119
|
-
- -
|
106
|
+
- - '>='
|
120
107
|
- !ruby/object:Gem::Version
|
121
108
|
version: 1.3.6
|
122
109
|
requirements: []
|
123
110
|
rubyforge_project: guard-test
|
124
|
-
rubygems_version:
|
111
|
+
rubygems_version: 2.0.0
|
125
112
|
signing_key:
|
126
|
-
specification_version:
|
113
|
+
specification_version: 4
|
127
114
|
summary: Guard gem for test-unit 2
|
128
115
|
test_files: []
|