chemistrykit 3.5.0 → 3.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,14 @@
1
+ #3.6.0 (2013-07-20)
2
+ Added the ability for tests to be retried on failure. A single retry will be attempted by default and the output will be verbose.
3
+
4
+ - Bumped version to 3.6.0 to prepare for release.
5
+ - Bumped version to to prepare for release.
6
+ - Updated the brew test to remove a redundant sauce test and to update the asset check to account for the retried test runs on failure
7
+ - Fixing rubocop message
8
+ - Added a default retry count, so it will retry a failed test once.
9
+ - Added a config attribute to brew for verbose retry
10
+ - Added rspec-retry
11
+
1
12
  #3.5.0 (2013-07-15)
2
13
  updated logging to store assets in a per beaker folder
3
14
 
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- #ChemistryKit 3.5.0 (2013-07-15)
1
+ #ChemistryKit 3.6.0 (2013-07-20)
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/chemistrykit.png)](http://badge.fury.io/rb/chemistrykit) [![Build Status](https://travis-ci.org/arrgyle/chemistrykit.png?branch=develop)](https://travis-ci.org/jrobertfox/chef-broiler-platter) [![Code Climate](https://codeclimate.com/github/arrgyle/chemistrykit.png)](https://codeclimate.com/github/arrgyle/chemistrykit) [![Coverage Status](https://coveralls.io/repos/arrgyle/chemistrykit/badge.png?branch=develop)](https://coveralls.io/r/arrgyle/chemistrykit?branch=develop)
4
4
 
@@ -2,13 +2,13 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'chemistrykit'
5
- s.version = '3.5.0'
5
+ s.version = '3.6.0'
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 = 'updated logging to store assets in a per beaker folder'
11
+ s.description = 'Added the ability for tests to be retried on failure. A single retry will be attempted by default and the output will be verbose.'
12
12
  s.license = 'MIT'
13
13
 
14
14
  s.files = `git ls-files`.split($/)
@@ -27,6 +27,7 @@ Gem::Specification.new do |s|
27
27
  s.add_dependency 'selenium-connect', '~> 3.2.0'
28
28
  s.add_dependency 'parallel_tests', '~> 0.15.0'
29
29
  s.add_dependency 'parallel', '~> 0.7.0'
30
+ s.add_dependency 'rspec-retry', '~> 0.2.1'
30
31
 
31
32
  s.add_development_dependency 'rspec', '~> 2.14.1'
32
33
  s.add_development_dependency 'aruba', '~> 0.5.1'
@@ -43,22 +43,6 @@ Feature: Brewing a ChemistryKit project
43
43
  | evidence/results_junit.xml |
44
44
  | evidence/bookie/server.log |
45
45
 
46
- Scenario: Saucelabs
47
- Given a file named "config.yaml" with:
48
- """
49
- selenium_connect:
50
- log: 'evidence'
51
- host: 'saucelabs'
52
- browser: 'iexplore'
53
- os: 'windows 2003'
54
- sauce_username: 'testing_arrgyle'
55
- sauce_api_key: 'ab7a6e17-16df-42d2-9ef6-c8d2539cc38a'
56
- browser_version: '8'
57
- description: 'ckit feature check'
58
- """
59
- When I run `ckit brew`
60
- Then the stdout should contain "1 example, 0 failures"
61
-
62
46
  Scenario: Brew a single beaker
63
47
  Given a file named "config.yaml" with:
64
48
  """
@@ -98,6 +82,7 @@ Feature: Brewing a ChemistryKit project
98
82
  """
99
83
  When I run `ckit brew --all`
100
84
  Then the stdout should contain "2 examples, 0 failures"
85
+
101
86
  Scenario: Saucelabs
102
87
  Given a file named "config.yaml" with:
103
88
  """
@@ -123,6 +108,6 @@ Feature: Brewing a ChemistryKit project
123
108
  """
124
109
  When I run `ckit brew --beakers=beakers/failure.rb`
125
110
  Then the stdout should contain "1 example, 1 failure"
126
- And there should be "1" "failed image" log files in "evidence/failing_beaker"
127
- And there should be "1" "report" log files in "evidence/failing_beaker"
128
- And there should be "1" "sauce log" log files in "evidence/failing_beaker"
111
+ And there should be "2" "failed image" log files in "evidence/failing_beaker"
112
+ And there should be "2" "report" log files in "evidence/failing_beaker"
113
+ And there should be "2" "sauce log" log files in "evidence/failing_beaker"
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'thor'
4
4
  require 'rspec'
5
+ require 'rspec/retry'
5
6
  require 'yarjuf'
6
7
  require 'chemistrykit/cli/new'
7
8
  require 'chemistrykit/cli/formula'
@@ -193,6 +194,11 @@ module ChemistryKit
193
194
  c.pattern = '**/*_beaker.rb'
194
195
  c.output_stream = $stdout
195
196
  c.add_formatter 'progress'
197
+
198
+ # for rspec-retry
199
+ c.verbose_retry = true # for rspec-retry
200
+ c.default_retry_count = 2
201
+
196
202
  if config.concurrency == 1 || options['parallel']
197
203
  c.add_formatter(config.log.format, File.join(Dir.getwd, config.log.path, config.log.results_file))
198
204
  end
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.5.0
4
+ version: 3.6.0
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-15 00:00:00.000000000 Z
13
+ date: 2013-07-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: thor
@@ -140,6 +140,22 @@ dependencies:
140
140
  - - ~>
141
141
  - !ruby/object:Gem::Version
142
142
  version: 0.7.0
143
+ - !ruby/object:Gem::Dependency
144
+ name: rspec-retry
145
+ requirement: !ruby/object:Gem::Requirement
146
+ none: false
147
+ requirements:
148
+ - - ~>
149
+ - !ruby/object:Gem::Version
150
+ version: 0.2.1
151
+ type: :runtime
152
+ prerelease: false
153
+ version_requirements: !ruby/object:Gem::Requirement
154
+ none: false
155
+ requirements:
156
+ - - ~>
157
+ - !ruby/object:Gem::Version
158
+ version: 0.2.1
143
159
  - !ruby/object:Gem::Dependency
144
160
  name: rspec
145
161
  requirement: !ruby/object:Gem::Requirement
@@ -252,7 +268,8 @@ dependencies:
252
268
  - - ~>
253
269
  - !ruby/object:Gem::Version
254
270
  version: 0.6.7
255
- description: updated logging to store assets in a per beaker folder
271
+ description: Added the ability for tests to be retried on failure. A single retry
272
+ will be attempted by default and the output will be verbose.
256
273
  email:
257
274
  - dave@arrgyle.com
258
275
  - jason@arrgyle.com
@@ -337,10 +354,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
337
354
  version: '0'
338
355
  segments:
339
356
  - 0
340
- hash: -2897425832114574927
357
+ hash: -2599168027342354598
341
358
  requirements: []
342
359
  rubyforge_project:
343
- rubygems_version: 1.8.25
360
+ rubygems_version: 1.8.24
344
361
  signing_key:
345
362
  specification_version: 3
346
363
  summary: A simple and opinionated web testing framework for Selenium that follows