kender 0.2.3 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/features/scenarios.feature +6 -3
- data/lib/kender/command.rb +1 -1
- data/lib/kender/commands/cucumber.rb +4 -3
- data/lib/kender/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f64e13e70878239c07d6cb35468023144bd10acc
|
4
|
+
data.tar.gz: 435ad1f5d1b821be177294481b6b14b391599f0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af96f7ce712411483c37d63b19e776cc8fde3ffa1b8d482496f6fe47c02a81650b3f33e3b546056a3c7d987dec6d792115b2af6f7c39fd558a0ad2bbeddba4e7
|
7
|
+
data.tar.gz: 52c4015058d0d1146acee2c42710be47c928f608a4a2555e880b5dcaf1ae543ad54d1c94321179ab51536628d5d8369b30150f74aa9e584f6929e2110979c051
|
data/features/scenarios.feature
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
@redo_bundle
|
1
2
|
Feature: Scenarios
|
2
3
|
Kender is able to run scenarios using the cucumber tool.
|
3
4
|
|
@@ -6,11 +7,13 @@ Feature: Scenarios
|
|
6
7
|
"""
|
7
8
|
source 'https://rubygems.org'
|
8
9
|
gem 'cucumber', '~>1.3'
|
10
|
+
gem 'kender', path: '../../' # needed to use the latest code
|
11
|
+
gem 'dice_bag', '~>0.7'
|
9
12
|
"""
|
10
13
|
And I run `bundle install`
|
11
14
|
|
12
15
|
Scenario: The project has no scenarios to run but cucumber is executed
|
13
|
-
When I run `rake ci`
|
16
|
+
When I run `bundle exec rake ci`
|
14
17
|
Then it should pass with:
|
15
18
|
"""
|
16
19
|
0 scenarios
|
@@ -24,7 +27,7 @@ Feature: Scenarios
|
|
24
27
|
This is a test of my product
|
25
28
|
Scenario: first test
|
26
29
|
"""
|
27
|
-
When I run `rake ci`
|
30
|
+
When I run `bundle exec rake ci`
|
28
31
|
Then it should pass with:
|
29
32
|
"""
|
30
33
|
1 scenario (1 passed)
|
@@ -45,5 +48,5 @@ Feature: Scenarios
|
|
45
48
|
raise 'failed'
|
46
49
|
end
|
47
50
|
"""
|
48
|
-
When I run `rake ci`
|
51
|
+
When I run `bundle exec rake ci`
|
49
52
|
Then the exit status should not be 0
|
data/lib/kender/command.rb
CHANGED
@@ -2,14 +2,15 @@ module Kender
|
|
2
2
|
class Cucumber < Command
|
3
3
|
|
4
4
|
def available?
|
5
|
-
in_gemfile?(
|
5
|
+
in_gemfile?('cucumber') and not(ENV['VALIDATE_PROJECT'])
|
6
6
|
end
|
7
7
|
|
8
8
|
def command
|
9
|
+
extra_env = ENV['HEADED_BROWSER'] ? "HEADED_BROWSER=#{ENV['HEADED_BROWSER']}" : ''
|
9
10
|
if defined?(ParallelTests)
|
10
|
-
|
11
|
+
"#{extra_env} bundle exec rake parallel:features"
|
11
12
|
else
|
12
|
-
|
13
|
+
"#{extra_env} bundle exec cucumber"
|
13
14
|
end
|
14
15
|
end
|
15
16
|
|
data/lib/kender/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kender
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Smith
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2014-
|
14
|
+
date: 2014-09-04 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|