parallel_tests 0.16.10 → 0.16.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/parallel_tests/cucumber/scenarios.rb +4 -6
- data/lib/parallel_tests/version.rb +1 -1
- data/spec/parallel_tests/cucumber/scenarios_spec.rb +5 -0
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b5c13209594eeecd1b1ae6f1a4f40e345bd9320
|
4
|
+
data.tar.gz: 50f02a5386ac62dfd718621310cf7cea4bf1d19e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93b226f3df70afdb10ded629b852757e77e038721a67a34b59dccf74f21625be78143811d35333f6d477e5e0f5e53dedeeb71897af88614c6e6c60f1419f0a7b
|
7
|
+
data.tar.gz: 129563f33850178e7df202b6580d19c03957b9eb0a186cc0da68b1a60670e9503fc1a6da91d2011b802a63dc7521182b3ca6dfb7d8636d90a53830cab9dbbe1f
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
parallel_tests (0.16.
|
4
|
+
parallel_tests (0.16.11)
|
5
5
|
parallel
|
6
6
|
|
7
7
|
GEM
|
@@ -24,7 +24,7 @@ GEM
|
|
24
24
|
gherkin-ruby (0.3.0)
|
25
25
|
multi_json (1.8.2)
|
26
26
|
multi_test (0.0.2)
|
27
|
-
parallel (0.
|
27
|
+
parallel (1.0.0)
|
28
28
|
rake (10.0.3)
|
29
29
|
rspec (2.13.0)
|
30
30
|
rspec-core (~> 2.13.0)
|
@@ -9,12 +9,10 @@ module ParallelTests
|
|
9
9
|
class Scenarios
|
10
10
|
class << self
|
11
11
|
def all(files, options={})
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
end
|
17
|
-
split_into_scenarios files, tag_expressions
|
12
|
+
tags = []
|
13
|
+
tags.concat options[:ignore_tag_pattern].to_s.split(/\s*,\s*/).map {|tag| "~#{tag}" }
|
14
|
+
tags.concat options[:test_options].to_s.scan(/(?:-t|--tags) (@\w+)/).flatten
|
15
|
+
split_into_scenarios files, tags.uniq
|
18
16
|
end
|
19
17
|
|
20
18
|
private
|
@@ -52,6 +52,11 @@ module ParallelTests
|
|
52
52
|
scenarios = Scenarios.all([feature_file.path], :ignore_tag_pattern => '@ignore, @wip')
|
53
53
|
scenarios.should eq %W(#{feature_file.path}:7)
|
54
54
|
end
|
55
|
+
|
56
|
+
it 'return scenarios with following tag' do
|
57
|
+
scenarios = Scenarios.all([feature_file.path], :test_options => '-t @wip')
|
58
|
+
scenarios.should eq %W(#{feature_file.path}:4)
|
59
|
+
end
|
55
60
|
end
|
56
61
|
end
|
57
62
|
end
|
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parallel_tests
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.16.
|
4
|
+
version: 0.16.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parallel
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
description:
|
@@ -34,9 +34,9 @@ executables:
|
|
34
34
|
extensions: []
|
35
35
|
extra_rdoc_files: []
|
36
36
|
files:
|
37
|
-
- .gitignore
|
38
|
-
- .rspec
|
39
|
-
- .travis.yml
|
37
|
+
- ".gitignore"
|
38
|
+
- ".rspec"
|
39
|
+
- ".travis.yml"
|
40
40
|
- Gemfile
|
41
41
|
- Gemfile.lock
|
42
42
|
- Rakefile
|
@@ -97,17 +97,17 @@ require_paths:
|
|
97
97
|
- lib
|
98
98
|
required_ruby_version: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
|
-
- -
|
100
|
+
- - ">="
|
101
101
|
- !ruby/object:Gem::Version
|
102
102
|
version: '0'
|
103
103
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
104
104
|
requirements:
|
105
|
-
- -
|
105
|
+
- - ">="
|
106
106
|
- !ruby/object:Gem::Version
|
107
107
|
version: '0'
|
108
108
|
requirements: []
|
109
109
|
rubyforge_project:
|
110
|
-
rubygems_version: 2.
|
110
|
+
rubygems_version: 2.2.2
|
111
111
|
signing_key:
|
112
112
|
specification_version: 4
|
113
113
|
summary: Run Test::Unit / RSpec / Cucumber / Spinach in parallel
|