guard-rspec 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
data/README.md
CHANGED
@@ -108,7 +108,7 @@ Former `:color`, `:drb`, `:fail_fast` and `:formatter` options are thus deprecat
|
|
108
108
|
:notification => false # don't display Growl (or Libnotify) notification after the specs are done running, default: true
|
109
109
|
:all_after_pass => false # don't run all specs after changed specs pass, default: true
|
110
110
|
:all_on_start => false # don't run all the specs at startup, default: true
|
111
|
-
:keep_failed => false # keep failed specs until
|
111
|
+
:keep_failed => false # don't keep failed specs until they pass, default: true
|
112
112
|
:run_all => { :cli => "-p" } # override any option when running all specs
|
113
113
|
:spec_paths => ["spec/"] # specify an array of paths that contain spec files
|
114
114
|
```
|
@@ -144,6 +144,25 @@ The `:all_on_start` and `:all_after_pass` options cause all specs located in the
|
|
144
144
|
are some specs you want to skip, you can tag them with RSpec metadata (such as `:slow => true`)
|
145
145
|
and skip them with the cli `--tag` option (i.e. `--tag ~slow`).
|
146
146
|
|
147
|
+
You can also use option :spec_paths to override paths used when running all specs.
|
148
|
+
You can use this feature to create multiple groups of guarded specs with distinct paths, and execute each in own process:
|
149
|
+
|
150
|
+
``` ruby
|
151
|
+
# in your Guardfile
|
152
|
+
group 'acceptance-tests' do
|
153
|
+
guard 'rspec', :spec_paths => ['spec/acceptance'] do
|
154
|
+
# ...
|
155
|
+
end
|
156
|
+
end
|
157
|
+
|
158
|
+
group 'unit-tests' do
|
159
|
+
guard 'rspec', :spec_paths => ['spec/models', 'spec/controllers', 'spec/routing'] do
|
160
|
+
# ...
|
161
|
+
end
|
162
|
+
end
|
163
|
+
```
|
164
|
+
|
165
|
+
|
147
166
|
Development
|
148
167
|
-----------
|
149
168
|
|
@@ -161,4 +180,4 @@ Please run `rake spec:prepare_fixtures` once before launching specs.
|
|
161
180
|
Author
|
162
181
|
------
|
163
182
|
|
164
|
-
[Thibaud Guillaume-Gentil](https://github.com/thibaudgg)
|
183
|
+
[Thibaud Guillaume-Gentil](https://github.com/thibaudgg)
|
@@ -1,8 +1,8 @@
|
|
1
1
|
require "#{File.dirname(__FILE__)}/../formatter"
|
2
2
|
require "rspec/core/formatters/base_formatter"
|
3
3
|
|
4
|
-
class NotificationRSpec < RSpec::Core::Formatters::BaseFormatter
|
5
|
-
include Formatter
|
4
|
+
class Guard::RSpec::Formatter::NotificationRSpec < RSpec::Core::Formatters::BaseFormatter
|
5
|
+
include Guard::RSpec::Formatter
|
6
6
|
|
7
7
|
def dump_summary(duration, total, failures, pending)
|
8
8
|
message = guard_message(total, failures, pending, duration)
|
@@ -1,8 +1,8 @@
|
|
1
1
|
require "#{File.dirname(__FILE__)}/../formatter"
|
2
2
|
require "spec/runner/formatter/base_formatter"
|
3
3
|
|
4
|
-
class NotificationSpec < Spec::Runner::Formatter::BaseFormatter
|
5
|
-
include Formatter
|
4
|
+
class Guard::RSpec::Formatter::NotificationSpec < Spec::Runner::Formatter::BaseFormatter
|
5
|
+
include Guard::RSpec::Formatter
|
6
6
|
|
7
7
|
def dump_summary(duration, total, failures, pending)
|
8
8
|
message = guard_message(total, failures, pending, duration)
|
data/lib/guard/rspec/runner.rb
CHANGED
@@ -27,7 +27,7 @@ module Guard
|
|
27
27
|
cmd_parts << rspec_exec.downcase
|
28
28
|
cmd_parts << options[:cli] if options[:cli]
|
29
29
|
cmd_parts << "-f progress" if options[:cli].nil? || !options[:cli].split(' ').any? { |w| %w[-f --format].include?(w) }
|
30
|
-
cmd_parts << "-r #{File.dirname(__FILE__)}/formatters/notification_#{rspec_exec.downcase}.rb -f Notification#{rspec_exec}#{rspec_version == 1 ? ":" : " --out "}/dev/null" if options[:notification] != false
|
30
|
+
cmd_parts << "-r #{File.dirname(__FILE__)}/formatters/notification_#{rspec_exec.downcase}.rb -f Guard::RSpec::Formatter::Notification#{rspec_exec}#{rspec_version == 1 ? ":" : " --out "}/dev/null" if options[:notification] != false
|
31
31
|
cmd_parts << paths.join(' ')
|
32
32
|
|
33
33
|
cmd_parts.join(' ')
|
data/lib/guard/rspec/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
12
|
+
date: 2011-09-05 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: guard
|
16
|
-
requirement: &
|
16
|
+
requirement: &70233880535160 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.4.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70233880535160
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: bundler
|
27
|
-
requirement: &
|
27
|
+
requirement: &70233880674960 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '1.0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70233880674960
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rspec
|
38
|
-
requirement: &
|
38
|
+
requirement: &70233880749260 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '2.6'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70233880749260
|
47
47
|
description: Guard::RSpec automatically run your specs (much like autotest).
|
48
48
|
email:
|
49
49
|
- thibaud@thibaud.me
|
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
81
81
|
version: 1.3.6
|
82
82
|
requirements: []
|
83
83
|
rubyforge_project: guard-rspec
|
84
|
-
rubygems_version: 1.8.
|
84
|
+
rubygems_version: 1.8.9
|
85
85
|
signing_key:
|
86
86
|
specification_version: 3
|
87
87
|
summary: Guard gem for RSpec
|