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 +8 -8
- data/Gemfile.lock +1 -1
- data/README.md +15 -0
- data/bin/recumber +1 -1
- data/lib/recumber.rb +1 -3
- data/lib/recumber/cucumber_output_parser.rb +6 -0
- data/recumber.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTBiYTg2ZjQyMzFkNDYwOTVjNDFjZDY3NDhlNjBhMGRjYTVlYWUyMQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MzUyNzFmNjg5YzcxYzU4YWMwMzY4YTIxNzkxNzU5OWNkODRjOTdlNQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDcwNjRlYTIyNDdkZGQ5MDllNzJhNWE0ZWQxNjU1NjJiZDA0ZDNlMDlhMjQ3
|
10
|
+
ZTM0YjhiMzAwMWJlZjM3ZDM1MzgzNmE2MjM5NTYwYTZiNmNlNmQyYjgzMDdj
|
11
|
+
YzkxZjI4YmNmMmVlMDc2MTVmYzc5ZGE3ZWNmZGRhYzgyM2U2YjE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OTlmODhlNDY5YTVkZWEyMTg1YzFkM2E5YjNiM2E0MDI4YTdlZTE0OTMwMTFk
|
14
|
+
MWRiODBhMjQ4MzQ4ZDI1YzY3NDk1NDA1MzI5YjA1NTcwNWEyODNhNzk1MWZm
|
15
|
+
MjQzOTA5MDVmNWNjNTYxNTk4N2ViYzc2YTRlYzhiNmMzODZjNTk=
|
data/Gemfile.lock
CHANGED
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.
|
data/bin/recumber
CHANGED
@@ -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}"
|
data/lib/recumber.rb
CHANGED
@@ -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
|
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
|
|
data/recumber.gemspec
CHANGED
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.
|
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-
|
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:
|