runfile-tasks 0.4.6 → 0.4.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 080bcca159673d76ef9021befb30c2a6946ba144
4
- data.tar.gz: e1e420951bdd8697751d50414f4a8baf9de6d0a0
3
+ metadata.gz: 71f9f225c68e22aecfa5561efffcb6b691820530
4
+ data.tar.gz: 564bbba81dca357050564d586208aef2b2fe7813
5
5
  SHA512:
6
- metadata.gz: 05ab7e50d71a2705d6c55f7e97359ae6bbaee8afff8e70963ea19db64012d5714abf51f4ce826c7cd3ff7a098ca4670e69efb14516e41ed714c250f37e7742cf
7
- data.tar.gz: 9d0ace9a5265aebc9eb78a8a6b1a66df52c00029cfdcf31470215ecbab9ac4c829d3d753051beb3cab9e04deb1f585033e0d92ece49e7500be2a9d23db23dc13
6
+ metadata.gz: 553366c04cfe265bc6fa378b8ba2d6aa4f98ddf577cef0f150b0668f959959dfed7ca428d067acc097a6b8bb8c5f27b480e7d003bed49affeb7b62c53d6760e5
7
+ data.tar.gz: 617bd22763e585c924ee5c5e07a61b0cc876c522a88e2597eec42e9fd561bb5d74676f5e3d902d4374a443073cdc9fa66448903fe11265d49797c4f7e75e5c9d
data/README.md CHANGED
@@ -112,7 +112,8 @@ RunfileTasks::Testing.minitest './test/*_test.rb'
112
112
 
113
113
  Commands Added:
114
114
 
115
- - `(feature|features) [<tag_or_file>]` - Run cucumber feature tests
115
+ - `(feature|features) [<tag_or_file> --list --fast]` - Run cucumber feature
116
+ tests or show list of available features.
116
117
  - `stepdefs` - Generate a markdown document from the step definitions
117
118
 
118
119
  ```ruby
@@ -3,14 +3,15 @@ module RunfileTasks
3
3
  extend self
4
4
 
5
5
  def cucumber
6
- usage "(feature|features) [<tag_or_file> --list]"
6
+ usage "(feature|features) [<tag_or_file> --list --fast]"
7
7
  help "Run cucumber feature tests. Optionally, specify a tag or a filename to run. Tags should be prefixed with @."
8
8
  option "--list", "Show list of available features"
9
+ option "--fast", "Abort on first failure"
9
10
  action :feature, :features do |args|
10
11
  if args['--list']
11
12
  show_cucumber_features
12
13
  else
13
- run_cucumber_features args['<tag_or_file>']
14
+ run_cucumber_features args['<tag_or_file>'], args['--fast']
14
15
  end
15
16
  end
16
17
  end
@@ -55,7 +56,7 @@ module RunfileTasks
55
56
  end
56
57
  end
57
58
 
58
- def run_cucumber_features(tag_or_file)
59
+ def run_cucumber_features(tag_or_file, fast=false)
59
60
  cmd = "cucumber"
60
61
  if tag_or_file
61
62
  if tag_or_file[0] == '@'
@@ -66,6 +67,7 @@ module RunfileTasks
66
67
  cmd = "#{cmd} 'features/#{tag_or_file}.feature'"
67
68
  end
68
69
  end
70
+ cmd = "#{cmd} --fail-fast" if fast
69
71
  exec cmd
70
72
  end
71
73
 
@@ -1,3 +1,3 @@
1
1
  module RunfileTasks
2
- VERSION = "0.4.6"
2
+ VERSION = "0.4.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runfile-tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.6
4
+ version: 0.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danny Ben Shitrit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-21 00:00:00.000000000 Z
11
+ date: 2017-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: runfile
@@ -65,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
65
  version: '0'
66
66
  requirements: []
67
67
  rubyforge_project:
68
- rubygems_version: 2.5.1
68
+ rubygems_version: 2.6.13
69
69
  signing_key:
70
70
  specification_version: 4
71
71
  summary: Runfile tasks collection