guard-minitest 2.3.0 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -9
- data/lib/guard/minitest/runner.rb +9 -3
- data/lib/guard/minitest/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f232a65392ff6ba90e35fe8c1ec0db39c39da735
|
4
|
+
data.tar.gz: ea74fbd9a55b99be64b90e388f20ca4574d198a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e3efca3a3240d962a0fb37b54aa7a953d441c432a0f5b53736e3b06c7b1eb88e5d3eb7ca7b284b311af12c61ad55f444d159988f877017e0f8851a7ba7bea2e
|
7
|
+
data.tar.gz: b459ab7ccc2f5f28ac0257b2ebf3f10295c690a30e029e79f7bfaba1b2718641a9d41238f19c9bdf93dc8ec194d2e2963eeabff3bd6ae607203384a9e6ebd8fc
|
data/README.md
CHANGED
@@ -9,7 +9,7 @@ Guard::Minitest allows to automatically & intelligently launch tests with the
|
|
9
9
|
|
10
10
|
## Install
|
11
11
|
|
12
|
-
Please be sure to have [Guard](http://github.com/guard/guard) installed before continue.
|
12
|
+
Please be sure to have [Guard](http://github.com/guard/guard) installed before you continue.
|
13
13
|
|
14
14
|
The simplest way to install Guard::Minitest is to use [Bundler](http://gembundler.com/).
|
15
15
|
|
@@ -55,7 +55,7 @@ group :test do
|
|
55
55
|
end
|
56
56
|
```
|
57
57
|
|
58
|
-
Or remove the test (or even the `test/performance` directory if it isn't necessary.
|
58
|
+
Or remove the test (or even the `test/performance` directory if it isn't necessary).
|
59
59
|
|
60
60
|
## Usage
|
61
61
|
|
@@ -63,8 +63,8 @@ Please read [Guard usage doc](http://github.com/guard/guard#readme)
|
|
63
63
|
|
64
64
|
## Guardfile
|
65
65
|
|
66
|
-
Guard::Minitest can be
|
67
|
-
Please read [guard doc](http://github.com/guard/guard#readme) for more info about Guardfile DSL.
|
66
|
+
Guard::Minitest can be adapated to all kind of projects.
|
67
|
+
Please read [guard doc](http://github.com/guard/guard#readme) for more info about the Guardfile DSL.
|
68
68
|
|
69
69
|
### Standard Guardfile when using Minitest::Unit
|
70
70
|
|
@@ -101,7 +101,7 @@ spring: true # enable spring support, default: false
|
|
101
101
|
zeus: true # enable zeus support; default: false
|
102
102
|
drb: true # enable DRb support, default: false
|
103
103
|
bundler: false # don't use "bundle exec" to run the minitest command, default: true
|
104
|
-
rubygems: true # require rubygems when
|
104
|
+
rubygems: true # require rubygems when running the minitest command (only if bundler is disabled), default: false
|
105
105
|
env: {} # specify some environment variables to be set when the test command is invoked, default: {}
|
106
106
|
all_env: {} # specify additional environment variables to be set when all tests are being run, default: false
|
107
107
|
autorun: false # require 'minitest/autorun' automatically, default: true
|
@@ -111,7 +111,7 @@ autorun: false # require 'minitest/autorun' automatically, de
|
|
111
111
|
|
112
112
|
#### `:test_folders` and `:test_file_patterns`
|
113
113
|
|
114
|
-
You can change the default location of test files using the `:test_folders` option and pattern of test files using the `:test_file_patterns` option:
|
114
|
+
You can change the default location of test files using the `:test_folders` option and change the pattern of test files using the `:test_file_patterns` option:
|
115
115
|
|
116
116
|
```ruby
|
117
117
|
guard :minitest, test_folders: 'test/unit', test_file_patterns: '*_test.rb' do
|
@@ -179,6 +179,9 @@ guard :minitest, drb: true do
|
|
179
179
|
# ...
|
180
180
|
end
|
181
181
|
```
|
182
|
+
The drb test runner honors the :include option, but does not (unlike the
|
183
|
+
default runner) automatically include :test_folders. If you want to
|
184
|
+
include the test paths, you must explicitly add them to :include.
|
182
185
|
|
183
186
|
## Development
|
184
187
|
|
@@ -197,9 +200,7 @@ For questions please join us in our [Google group](http://groups.google.com/grou
|
|
197
200
|
|
198
201
|
## Maintainer
|
199
202
|
|
200
|
-
|
201
|
-
|
202
|
-
[Rémy Coutable](https://github.com/rymai)
|
203
|
+
[Eric Steele](https://github.com/genericsteele)
|
203
204
|
|
204
205
|
## Author
|
205
206
|
|
@@ -154,7 +154,7 @@ module Guard
|
|
154
154
|
end
|
155
155
|
|
156
156
|
def drb_command(paths)
|
157
|
-
%w[testdrb] + relative_paths(paths)
|
157
|
+
%w[testdrb] + generate_includes(false) + relative_paths(paths)
|
158
158
|
end
|
159
159
|
|
160
160
|
def zeus_command(paths)
|
@@ -195,8 +195,14 @@ module Guard
|
|
195
195
|
cmd_parts += cli_options
|
196
196
|
end
|
197
197
|
|
198
|
-
def generate_includes
|
199
|
-
|
198
|
+
def generate_includes(include_test_folders = true)
|
199
|
+
if include_test_folders
|
200
|
+
folders = test_folders + include_folders
|
201
|
+
else
|
202
|
+
folders = include_folders
|
203
|
+
end
|
204
|
+
|
205
|
+
folders.map {|f| %[-I"#{f}"] }
|
200
206
|
end
|
201
207
|
|
202
208
|
def generate_env(all=false)
|
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: 2.3.
|
4
|
+
version: 2.3.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: 2014-
|
12
|
+
date: 2014-06-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: guard
|