recumber 0.0.3 → 0.0.4

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTVlNTg5MzEwOTc4YmM4NmYyYTMwM2EzMGExZjdlYmUyYTNkNGE5ZQ==
4
+ ZTBiYTg2ZjQyMzFkNDYwOTVjNDFjZDY3NDhlNjBhMGRjYTVlYWUyMQ==
5
5
  data.tar.gz: !binary |-
6
- MWZiMjdhYzliYTY2MWQyY2UyMDY3NGY4MmMwMWJmZTk4MGUyYjI4MQ==
6
+ MzUyNzFmNjg5YzcxYzU4YWMwMzY4YTIxNzkxNzU5OWNkODRjOTdlNQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YmNlNzU0NzYzMzNkODY0MTliNDMzOTBlZjVhZTcxOTYyZDIzYjEwZTA3YjRm
10
- N2UzMTU0NTVmYjNmMzI1MmM2NmEzM2ExZDk4OGY4MDk3NDBjNzY2MzdlOTdj
11
- ZjA4MTJmYmZkMzdkMDk3MjdjNTg3ODQ5NTNmNDMwNjE4ODMzMjM=
9
+ ZDcwNjRlYTIyNDdkZGQ5MDllNzJhNWE0ZWQxNjU1NjJiZDA0ZDNlMDlhMjQ3
10
+ ZTM0YjhiMzAwMWJlZjM3ZDM1MzgzNmE2MjM5NTYwYTZiNmNlNmQyYjgzMDdj
11
+ YzkxZjI4YmNmMmVlMDc2MTVmYzc5ZGE3ZWNmZGRhYzgyM2U2YjE=
12
12
  data.tar.gz: !binary |-
13
- Mzc0NWQ1Y2ZkYmRmNmQxNjJlYzI5YjZlN2Y4ZWE0OTcxMjE0YmZmOTc5OGJl
14
- YjI5NGY0ZTVjYzE3MTIyMzNjYjE3MzAxM2IzN2I5Y2QwZDk2NjEyZmQ5ZjJk
15
- MTg2ZmY5NjM2YTU5N2UyYWMwNWY0MjdjYjc2NGNlNTIyYWI0OTg=
13
+ OTlmODhlNDY5YTVkZWEyMTg1YzFkM2E5YjNiM2E0MDI4YTdlZTE0OTMwMTFk
14
+ MWRiODBhMjQ4MzQ4ZDI1YzY3NDk1NDA1MzI5YjA1NTcwNWEyODNhNzk1MWZm
15
+ MjQzOTA5MDVmNWNjNTYxNTk4N2ViYzc2YTRlYzhiNmMzODZjNTk=
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- recumber (0.0.3)
4
+ recumber (0.0.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -4,6 +4,12 @@ recumber
4
4
  Automatically reruns failed cucumber tests.
5
5
  Most handy when re-evaluating cucumber failures caused by parallel flakiness
6
6
 
7
+ Installing
8
+ --------------
9
+ ```bash
10
+ [sudo] gem install recumber
11
+ ```
12
+
7
13
  Usage:
8
14
  ========
9
15
  Run cucumber and pipe its output to a logfile
@@ -18,4 +24,13 @@ Recumber will parse the logfile at the relative path specified above
18
24
  ```bash
19
25
  $ recumber
20
26
  ```
27
+ optionally, with zeus
28
+
29
+ ```bash
30
+ $ recumber -z
31
+ ```
21
32
 
33
+ Contributing
34
+ --------------
35
+ If you'd like to contribute to this project, fork this repo, make your changes,
36
+ fixes, or additions, then send a pull request.
@@ -6,7 +6,7 @@ require 'recumber'
6
6
 
7
7
  options = parse_command_line_args
8
8
 
9
- cuke_log_path = "log/cucumber/last_run.log"
9
+ cuke_log_path = ARGV[0] || "log/cucumber/last_run.log"
10
10
 
11
11
  unless File.exists? cuke_log_path
12
12
  puts "ERROR! Cannot find cucumber logfile at: #{cuke_log_path}"
@@ -10,9 +10,7 @@ def parse_command_line_args
10
10
  options_hash = {}
11
11
 
12
12
  option_parser = OptionParser.new do |option|
13
- option.banner = "Usage: recumber COMMAND [OPTIONS]"
14
- option.separator ""
15
- option.separator "Commands"
13
+ option.banner = "Usage: recumber [OPTIONS] [LOGFILE]"
16
14
  option.separator ""
17
15
  option.separator "Options"
18
16
 
@@ -6,6 +6,12 @@ class CucumberOutputParser
6
6
  file_list = remove_comment_lines(file_list)
7
7
  file_list = collapse_newlines(file_list)
8
8
 
9
+ if file_list.empty?
10
+ file_list = cucumber_output.match(/features\/.*\.feature:\d/m)
11
+ file_list = file_list[0].gsub(/\n/, " ")
12
+ file_list = file_list.gsub(/\.\d+/, "")
13
+ end
14
+
9
15
  file_list.split(" ")
10
16
  end
11
17
 
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "recumber"
7
- s.version = "0.0.3"
7
+ s.version = "0.0.4"
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["Todd Mohney"]
10
10
  s.email = ["toddmohney@gmail.com"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Todd Mohney
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-21 00:00:00.000000000 Z
11
+ date: 2013-05-26 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Automatically re-runs failed cucumber features.
14
14
  email: