flatware-cucumber 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: abd4dfd22b8f0236bdad9be40a5984cd74303a61
4
- data.tar.gz: 3a10a731fb626989de5f3c02052c7d4fc6b04a20
3
+ metadata.gz: e57bee3ec267db9c1a50a6d499e0f7c042255df9
4
+ data.tar.gz: 93b2e602ffffe885154f8d14a1b84ffa24d00a6d
5
5
  SHA512:
6
- metadata.gz: 4575384e18651e6d27d7c71fd7acde3634020536fe722f63777e959c8cc18060d2df5b5cece58ccf7d0fd034d7c0a90be867267a77ff55c3b8288795c7c4d00a
7
- data.tar.gz: 69ce306cde64d8944fc89e9e1622c8433e785b029b85de1246d09dccb83e376668bbcb481a697bc832508207ae163ed675e8b20fdf7714165569a57500caf518
6
+ metadata.gz: ceab1a559a2c45aeff2e53f6b8bdbab0cb8894363611ee73fc18b3367b55d72e1ff62b97814ef25582ce4629c15a0506736300d369accd22f35b8b322265b77b
7
+ data.tar.gz: 230f6855909aaa84ca3e8078cd70c6cdc38a6a524204149f6c746c2eabfa39847816166b7af84e1ecc3c6f95e0e6f92be24dd0f13f7bf15a16e8b7f0753ae6d3
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
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flatware-cucumber
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: flatware
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.4.1
19
+ version: 1.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.4.1
26
+ version: 1.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: cucumber
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.0'
33
+ version: '3.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '2.0'
40
+ version: '3.0'
41
41
  description: A distributed cucumber runner
42
42
  email: brian@hashrocket.com
43
43
  executables: []
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  version: '0'
78
78
  requirements: []
79
79
  rubyforge_project:
80
- rubygems_version: 2.6.14
80
+ rubygems_version: 2.6.12
81
81
  signing_key:
82
82
  specification_version: 4
83
83
  summary: A distributed cucumber runner