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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 05e90320723eb9d0bcfb63d679ab20fefcf959d6
4
- data.tar.gz: 246b6941233445b4049b195841a09a312ab688a5
3
+ metadata.gz: 0ff7cc506cc64f0d64a8892435f946ec19551461
4
+ data.tar.gz: e27ffb2ff50e1547a03e2c8f24c8a2c1f6220abe
5
5
  SHA512:
6
- metadata.gz: 85b3f22abdd35c210aee7063073ac27b6fe77d8db1ac7488dea8ee62ea11fab16eccbbef10b57d049833ec3b49ba388a9719c003d9241287d0a03b7ebcf2992c
7
- data.tar.gz: 62e93337c7304ec941196dfc5d959e0bbc20acdda6dc45ea136b6748bc6cb61809b8e5943f842dfed521dd27b6fd9d6db4a7fc4e40cf2d8881ffb2f6911792a8
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 ~@javascript
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 :after_test_case, &method(:on_after_test_case)
25
- config.on_event :after_test_step, &method(:on_after_test_step)
26
- config.on_event :finished_testing, &method(:on_finished_testing)
27
- config.on_event :step_match, &method(:on_step_match)
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 on_after_test_case(event)
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 on_step_match(event)
45
+ def on_step_activated(event)
46
46
  @matched_steps << event.step_match.location.to_s
47
47
  end
48
48
 
49
- def on_after_test_step(event)
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 on_finished_testing(*)
56
+ def on_test_run_finished(*)
57
57
  Sink::client.checkpoint Checkpoint.new steps, scenarios
58
58
  reset
59
59
  end
@@ -1,3 +1,3 @@
1
1
  module Flatware
2
- VERSION = '0.4.1'
2
+ VERSION = '1.0.0'
3
3
  end
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.1
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-03-16 00:00:00.000000000 Z
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.14
133
+ rubygems_version: 2.6.12
134
134
  signing_key:
135
135
  specification_version: 4
136
136
  summary: A distributed cucumber and rspec runner