flatware 0.4.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/flatware/cucumber/formatter.rb +8 -8
- data/lib/flatware/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ff7cc506cc64f0d64a8892435f946ec19551461
|
4
|
+
data.tar.gz: e27ffb2ff50e1547a03e2c8f24c8a2c1f6220abe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df21484a242be9f3e979c53bd38830c1e824e045a966d2e66023bd9f56c43ea64ed7a1c6e365206ea4bfb59e2440ce6654520eaf1be55f25f463119e89306b2d
|
7
|
+
data.tar.gz: c6ce36dc2f5472e7abc59eee306cc1afc82dcae1a6c4fba5844a82a1501f3f3d036d1bb8ba2aba99d0faa7d5eb07f2280deb1bd8097f0953a574c874371581ad
|
data/README.md
CHANGED
@@ -85,7 +85,7 @@ You can also pass most cucumber/rspec options to Flatware. For example, to run o
|
|
85
85
|
features that are not tagged 'javascript', you can:
|
86
86
|
|
87
87
|
```sh
|
88
|
-
$ flatware cucumber -t
|
88
|
+
$ flatware cucumber -t 'not @javascript'
|
89
89
|
```
|
90
90
|
|
91
91
|
Additionally, for either cucumber or rspec you can specify a directory:
|
@@ -21,10 +21,10 @@ module Flatware
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def initialize(config)
|
24
|
-
config.on_event :
|
25
|
-
config.on_event :
|
26
|
-
config.on_event :
|
27
|
-
config.on_event :
|
24
|
+
config.on_event :test_case_finished, &method(:on_test_case_finished)
|
25
|
+
config.on_event :test_step_finished, &method(:on_test_step_finished)
|
26
|
+
config.on_event :test_run_finished, &method(:on_test_run_finished)
|
27
|
+
config.on_event :step_activated, &method(:on_step_activated)
|
28
28
|
reset
|
29
29
|
end
|
30
30
|
|
@@ -38,22 +38,22 @@ module Flatware
|
|
38
38
|
|
39
39
|
attr_reader :steps, :scenarios, :matched_steps
|
40
40
|
|
41
|
-
def
|
41
|
+
def on_test_case_finished(event)
|
42
42
|
scenarios << Scenario.new(event.test_case.name, event.test_case.location.to_s, event.result.to_sym)
|
43
43
|
end
|
44
44
|
|
45
|
-
def
|
45
|
+
def on_step_activated(event)
|
46
46
|
@matched_steps << event.step_match.location.to_s
|
47
47
|
end
|
48
48
|
|
49
|
-
def
|
49
|
+
def on_test_step_finished(event)
|
50
50
|
if really_a_step?(event.test_step) or event.result.undefined?
|
51
51
|
steps << StepResult.new(event.result.to_sym, event.result.failed? && event.result.exception)
|
52
52
|
Sink::client.progress Result.new event.result.to_sym
|
53
53
|
end
|
54
54
|
end
|
55
55
|
|
56
|
-
def
|
56
|
+
def on_test_run_finished(*)
|
57
57
|
Sink::client.checkpoint Checkpoint.new steps, scenarios
|
58
58
|
reset
|
59
59
|
end
|
data/lib/flatware/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flatware
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Dunn
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi-rzmq
|
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
130
|
version: '0'
|
131
131
|
requirements: []
|
132
132
|
rubyforge_project:
|
133
|
-
rubygems_version: 2.6.
|
133
|
+
rubygems_version: 2.6.12
|
134
134
|
signing_key:
|
135
135
|
specification_version: 4
|
136
136
|
summary: A distributed cucumber and rspec runner
|