parallel_tests 0.16.10 → 0.16.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 77fd35ad834272e66aae38d5b06f7ab5ffb3ec32
4
- data.tar.gz: c248b869667fdacbf29d92dd9925de40d34a1fde
3
+ metadata.gz: 1b5c13209594eeecd1b1ae6f1a4f40e345bd9320
4
+ data.tar.gz: 50f02a5386ac62dfd718621310cf7cea4bf1d19e
5
5
  SHA512:
6
- metadata.gz: 46f2ad3d0747920f504502fd21418613a884dc6a1b563c90918eccf6b19bb32e6303420a3862b2c2698340cb769bc330f9290e18c07c08b962377e1a6392908d
7
- data.tar.gz: f1282e2c02c13dd6ad09f09f19a5b232cfd996246094f5ac55156007c78e420707c85997e532fa3a9bd70f165785f211d621f379953f77bc79529f4afcabeba1
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.10)
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.9.2)
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
- tag_expressions = if options[:ignore_tag_pattern]
13
- options[:ignore_tag_pattern].split(/\s*,\s*/).map {|tag| "~#{tag}" }
14
- else
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
@@ -1,3 +1,3 @@
1
1
  module ParallelTests
2
- VERSION = Version = '0.16.10'
2
+ VERSION = Version = '0.16.11'
3
3
  end
@@ -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.10
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-02-20 00:00:00.000000000 Z
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.0.14
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