chemistrykit 3.3.0 → 3.3.1

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.
@@ -1,3 +1,11 @@
1
+ #3.3.1 (2013-07-11)
2
+ Fixed bugs related to tagging and alternate configuration files in concurrent runs
3
+
4
+ - Bumped version to 3.3.1 to prepare for release.
5
+ - final code quality check
6
+ - fixed issue where --all was not getting passed forward in parallel tests and the same with an alternative config file, added tests for those as well
7
+ - fixed duplicatealias for brew option
8
+
1
9
  #3.3.0 (2013-07-09)
2
10
  Fixed bugs with tagging and concurrency
3
11
 
@@ -2,13 +2,13 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "chemistrykit"
5
- s.version = "3.3.0"
5
+ s.version = "3.3.1"
6
6
  s.platform = Gem::Platform::RUBY
7
7
  s.authors = ["Dave Haeffner", "Jason Fox"]
8
8
  s.email = ["dave@arrgyle.com", "jason@arrgyle.com"]
9
9
  s.homepage = "https://github.com/arrgyle/chemistrykit"
10
10
  s.summary = "A simple and opinionated web testing framework for Selenium that follows convention over configuration."
11
- s.description = "Fixed bugs with tagging and concurrency"
11
+ s.description = "Fixed bugs related to tagging and alternate configuration files in concurrent runs"
12
12
  s.license = 'MIT'
13
13
 
14
14
  s.files = `git ls-files`.split($/)
@@ -94,4 +94,6 @@ Feature: Support for concurency
94
94
  end
95
95
  """
96
96
  When I run `ckit brew --all`
97
+ Then the stdout should not contain "All examples were filtered out"
98
+ And the stdout should not contain "0 examples, 0 failures"
97
99
  And there should be "4" unique results files in the "evidence" directory
@@ -53,3 +53,19 @@ Feature: Support for multiple configuration files
53
53
  Then the stdout should contain "1 example, 0 failures"
54
54
  And the following files should exist:
55
55
  | evidence_alternate/server.log |
56
+
57
+ Scenario: I can specifiy an alternative configuration with --config with concurrency
58
+ Given a directory named "evidence_alternate"
59
+ And a file named "alternate.yaml" with:
60
+ """
61
+ concurrency: 4
62
+ log:
63
+ path: 'evidence_alternate'
64
+ selenium_connect:
65
+ host: 'localhost'
66
+ """
67
+ When I run `ckit brew --config alternate.yaml`
68
+ Then the stdout should contain "1 example, 0 failures"
69
+ And there should be "1" unique results files in the "evidence_alternate" directory
70
+ And the following files should exist:
71
+ | evidence_alternate/server.log |
@@ -60,7 +60,7 @@ module ChemistryKit
60
60
  method_option :tag, type: :array
61
61
  method_option :config, default: 'config.yaml', aliases: '-c', desc: 'Supply alternative config file.'
62
62
  # TODO there should be a facility to simply pass a path to this command
63
- method_option :beakers, aliases: '-a', type: :array
63
+ method_option :beakers, aliases: '-b', type: :array
64
64
  # This is set if the thread is being run in parallel so as not to trigger recursive concurency
65
65
  method_option :parallel, default: false
66
66
  method_option :results_file, aliases: '-r', default: false, desc: 'Specifiy the name of your results file.'
@@ -104,7 +104,7 @@ module ChemistryKit
104
104
 
105
105
  # based on concurrency parameter run tests
106
106
  if config.concurrency > 1 && ! options['parallel']
107
- run_in_parallel beakers, config.concurrency, @tags
107
+ run_in_parallel beakers, config.concurrency, @tags, options
108
108
  else
109
109
  run_rspec beakers
110
110
  end
@@ -180,9 +180,12 @@ module ChemistryKit
180
180
  end
181
181
  end
182
182
 
183
- def run_in_parallel(beakers, concurrency, tags)
184
- tag_string = tags.empty? ? nil : '--tag=' + tags[:filter].map { |k, v| "#{k}:#{v}" }.join(' ')
185
- args = %w(--type rspec) + ['-n', concurrency.to_s] + ['-o', "#{tag_string} --beakers="] + beakers
183
+ def run_in_parallel(beakers, concurrency, tags, options)
184
+ unless options[:all]
185
+ tag_string = tags.empty? ? nil : '--tag=' + tags[:filter].map { |k, v| "#{k}:#{v}" }.join(' ')
186
+ end
187
+ config_string = '--config=' + options['config']
188
+ args = %w(--type rspec) + ['-n', concurrency.to_s] + ['-o', "#{config_string} #{tag_string} --beakers="] + beakers
186
189
  ParallelTests::CLI.new.run(args)
187
190
  end
188
191
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chemistrykit
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0
4
+ version: 3.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-07-09 00:00:00.000000000 Z
13
+ date: 2013-07-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: thor
@@ -220,7 +220,8 @@ dependencies:
220
220
  - - ~>
221
221
  - !ruby/object:Gem::Version
222
222
  version: 0.9.0
223
- description: Fixed bugs with tagging and concurrency
223
+ description: Fixed bugs related to tagging and alternate configuration files in concurrent
224
+ runs
224
225
  email:
225
226
  - dave@arrgyle.com
226
227
  - jason@arrgyle.com
@@ -302,7 +303,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
302
303
  version: '0'
303
304
  segments:
304
305
  - 0
305
- hash: -1364358405018714304
306
+ hash: 2304816470703574176
306
307
  requirements: []
307
308
  rubyforge_project:
308
309
  rubygems_version: 1.8.25