aruba 0.14.11 → 0.14.12
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 +4 -4
- data/.travis.yml +2 -0
- data/CHANGELOG.md +10 -0
- data/Gemfile +6 -6
- data/aruba.gemspec +1 -1
- data/features/03_testing_frameworks/cucumber/announce_information_for_troubleshooting.feature +43 -0
- data/features/03_testing_frameworks/cucumber/steps/command/debug_your_command_in_aruba.feature +26 -0
- data/lib/aruba/platforms/announcer.rb +15 -10
- data/lib/aruba/processes/basic_process.rb +10 -10
- data/lib/aruba/setup.rb +5 -5
- data/lib/aruba/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e16262110ee32ed9ce61ccda3aaf6a798002d4c62b6885048a0f3698c2c297c
|
4
|
+
data.tar.gz: 5e94b094793f6277a0621a60e8d58e98c61e9a61150444340fa1bbf6052d46e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: affa835e329faf7345a638ab35d15ce7fdb540888f209962e678553d94ca5b39724c85bcabdb6cf5ab928c95e23f25f18557ab95026118d1a9be3f62e97cb730
|
7
|
+
data.tar.gz: 56c263fdea05ba676929893517003989ebd83265fb07ce0b3581ce8f39b2d2d1c5aa3a87564732305747e2974493f59e0fff19b7bb289a09a73de7e933169373
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,12 @@ This project will adhere to [Semantic Versioning][1] once version 1.0.0 is relea
|
|
6
6
|
|
7
7
|
This document is formatted according to the principles of [Keep A CHANGELOG][2].
|
8
8
|
|
9
|
+
## [v0.14.12]
|
10
|
+
|
11
|
+
* Loosen dependency on childprocess ([#673])
|
12
|
+
* Fix Travis build ([#668])
|
13
|
+
* Handle announcing with DebugProcess ([#664])
|
14
|
+
|
9
15
|
## [v0.14.11]
|
10
16
|
|
11
17
|
* Loosen childprocess dependency ([#658])
|
@@ -674,6 +680,9 @@ This document is formatted according to the principles of [Keep A CHANGELOG][2].
|
|
674
680
|
|
675
681
|
<!-- issues & pull requests -->
|
676
682
|
|
683
|
+
[#673]: https://github.com/cucumber/aruba/pull/673
|
684
|
+
[#668]: https://github.com/cucumber/aruba/pull/668
|
685
|
+
[#664]: https://github.com/cucumber/aruba/pull/664
|
677
686
|
[#658]: https://github.com/cucumber/aruba/pull/658
|
678
687
|
[#650]: https://github.com/cucumber/aruba/pull/650
|
679
688
|
[#647]: https://github.com/cucumber/aruba/pull/647
|
@@ -871,6 +880,7 @@ This document is formatted according to the principles of [Keep A CHANGELOG][2].
|
|
871
880
|
|
872
881
|
<!-- Releases -->
|
873
882
|
|
883
|
+
[v0.14.12]: https://github.com/cucumber/aruba/compare/v0.14.11...v0.14.12
|
874
884
|
[v0.14.11]: https://github.com/cucumber/aruba/compare/v0.14.10...v0.14.11
|
875
885
|
[v0.14.10]: https://github.com/cucumber/aruba/compare/v0.14.9...v0.14.10
|
876
886
|
[v0.14.9]: https://github.com/cucumber/aruba/compare/v0.14.8...v0.14.9
|
data/Gemfile
CHANGED
@@ -89,7 +89,7 @@ group :development, :test do
|
|
89
89
|
elsif RUBY_VERSION < '2.3.0'
|
90
90
|
gem 'childprocess', '~> 1.0.1'
|
91
91
|
else
|
92
|
-
gem 'childprocess', '
|
92
|
+
gem 'childprocess', ['>= 2.0', '< 4.0']
|
93
93
|
end
|
94
94
|
|
95
95
|
if RUBY_VERSION < '1.9.2'
|
@@ -103,13 +103,13 @@ group :development, :test do
|
|
103
103
|
gem 'rubocop', '~> 0.32', '< 0.41.1'
|
104
104
|
end
|
105
105
|
|
106
|
-
if RUBY_VERSION >= '1.9.3'
|
107
|
-
gem 'cucumber-pro', '~> 0.0'
|
108
|
-
end
|
109
|
-
|
110
106
|
if RUBY_VERSION < '2.0.0'
|
111
107
|
gem 'ffi', '< 1.11.0'
|
112
108
|
end
|
113
109
|
|
114
|
-
|
110
|
+
if RUBY_VERSION < '1.9.3'
|
111
|
+
gem 'minitest', '~> 5.8.0'
|
112
|
+
else
|
113
|
+
gem 'minitest', '~> 5.8'
|
114
|
+
end
|
115
115
|
end
|
data/aruba.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.homepage = 'http://github.com/cucumber/aruba'
|
15
15
|
|
16
16
|
s.add_runtime_dependency 'cucumber', '>= 1.3.19'
|
17
|
-
s.add_runtime_dependency 'childprocess', ['>= 0.6.3', '<
|
17
|
+
s.add_runtime_dependency 'childprocess', ['>= 0.6.3', '< 4.0.0']
|
18
18
|
s.add_runtime_dependency 'ffi', '~> 1.9'
|
19
19
|
s.add_runtime_dependency 'rspec-expectations', '>= 2.99'
|
20
20
|
s.add_runtime_dependency 'contracts', '~> 0.9'
|
data/features/03_testing_frameworks/cucumber/announce_information_for_troubleshooting.feature
CHANGED
@@ -261,3 +261,46 @@ Feature: Announce output during test run
|
|
261
261
|
|
262
262
|
echo 'Hello World'
|
263
263
|
"""
|
264
|
+
|
265
|
+
Scenario: Announce everything
|
266
|
+
Given an executable named "bin/aruba-test-cli" with:
|
267
|
+
"""bash
|
268
|
+
#!/usr/bin/env bash
|
269
|
+
|
270
|
+
echo 'Hello World'
|
271
|
+
"""
|
272
|
+
And a file named "features/exit_status.feature" with:
|
273
|
+
"""cucumber
|
274
|
+
Feature: Announce
|
275
|
+
@announce
|
276
|
+
Scenario: Run command
|
277
|
+
When I run `aruba-test-cli`
|
278
|
+
Then the exit status should be 0
|
279
|
+
"""
|
280
|
+
When I run `cucumber`
|
281
|
+
Then the features should all pass
|
282
|
+
And the output should contain:
|
283
|
+
"""
|
284
|
+
<<-STDOUT
|
285
|
+
Hello World
|
286
|
+
|
287
|
+
STDOUT
|
288
|
+
"""
|
289
|
+
And the output should contain:
|
290
|
+
"""
|
291
|
+
<<-STDERR
|
292
|
+
|
293
|
+
STDERR
|
294
|
+
"""
|
295
|
+
And the output should contain:
|
296
|
+
"""
|
297
|
+
<<-COMMAND
|
298
|
+
#!/usr/bin/env bash
|
299
|
+
|
300
|
+
echo 'Hello World'
|
301
|
+
COMMAND
|
302
|
+
"""
|
303
|
+
And the output should contain:
|
304
|
+
"""
|
305
|
+
<<-COMMAND FILESYSTEM STATUS
|
306
|
+
"""
|
data/features/03_testing_frameworks/cucumber/steps/command/debug_your_command_in_aruba.feature
CHANGED
@@ -90,3 +90,29 @@ Feature: Debug your command in cucumber-test-run
|
|
90
90
|
"""
|
91
91
|
7:\s+binding.pry
|
92
92
|
"""
|
93
|
+
|
94
|
+
Scenario: Can handle announcers
|
95
|
+
Given an executable named "bin/aruba-test-cli" with:
|
96
|
+
"""bash
|
97
|
+
#!/usr/bin/env bash
|
98
|
+
|
99
|
+
exit 0
|
100
|
+
"""
|
101
|
+
And a file named "features/debug.feature" with:
|
102
|
+
"""cucumber
|
103
|
+
Feature: Exit status in debug environment
|
104
|
+
|
105
|
+
@debug
|
106
|
+
@announce
|
107
|
+
Scenario: Run program with debug code
|
108
|
+
When I run `aruba-test-cli`
|
109
|
+
Then the exit status should be 0
|
110
|
+
"""
|
111
|
+
When I successfully run `cucumber`
|
112
|
+
Then the features should all pass
|
113
|
+
And the output should contain:
|
114
|
+
"""
|
115
|
+
<<-STDOUT
|
116
|
+
This is the debug launcher on STDOUT. If this output is unexpected, please check your setup.
|
117
|
+
STDOUT
|
118
|
+
"""
|
@@ -88,9 +88,9 @@ module Aruba
|
|
88
88
|
output_format :stop_signal, proc { |p, s| format('Command will be stopped with `kill -%s %s`', s, p) }
|
89
89
|
output_format :timeout, '# %s-timeout: %s seconds'
|
90
90
|
output_format :wait_time, '# %s: %s seconds'
|
91
|
-
|
92
|
-
|
93
|
-
|
91
|
+
output_format :command_filesystem_status, proc { |status|
|
92
|
+
format("<<-COMMAND FILESYSTEM STATUS\n%s\nCOMMAND FILESYSTEM STATUS",
|
93
|
+
Aruba.platform.simple_table(status.to_h, :sort => false)) }
|
94
94
|
|
95
95
|
# rubocop:disable Metrics/LineLength
|
96
96
|
if @options[:stdout]
|
@@ -184,13 +184,18 @@ module Aruba
|
|
184
184
|
|
185
185
|
return unless activated?(channel)
|
186
186
|
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
187
|
+
begin
|
188
|
+
if block_given?
|
189
|
+
value = yield
|
190
|
+
args << value
|
191
|
+
end
|
192
|
+
|
193
|
+
message = the_output_format.call(*args)
|
194
|
+
message += "\n"
|
195
|
+
message = colorizer.cyan(message)
|
196
|
+
rescue NotImplementedError => e
|
197
|
+
message = "Error fetching announced value for #{channel}: #{e.message}"
|
198
|
+
end
|
194
199
|
|
195
200
|
announcer.announce(message)
|
196
201
|
|
@@ -36,7 +36,7 @@ module Aruba
|
|
36
36
|
|
37
37
|
# Output pid of process
|
38
38
|
def pid
|
39
|
-
|
39
|
+
raise NotImplementedError
|
40
40
|
end
|
41
41
|
|
42
42
|
# Output stderr and stdout
|
@@ -45,39 +45,39 @@ module Aruba
|
|
45
45
|
end
|
46
46
|
|
47
47
|
def write(*)
|
48
|
-
NotImplementedError
|
48
|
+
raise NotImplementedError
|
49
49
|
end
|
50
50
|
|
51
51
|
def stdin(*)
|
52
|
-
NotImplementedError
|
52
|
+
raise NotImplementedError
|
53
53
|
end
|
54
54
|
|
55
55
|
def stdout(*)
|
56
|
-
NotImplementedError
|
56
|
+
raise NotImplementedError
|
57
57
|
end
|
58
58
|
|
59
59
|
def stderr(*)
|
60
|
-
NotImplementedError
|
60
|
+
raise NotImplementedError
|
61
61
|
end
|
62
62
|
|
63
63
|
def close_io(*)
|
64
|
-
NotImplementedError
|
64
|
+
raise NotImplementedError
|
65
65
|
end
|
66
66
|
|
67
67
|
def send_signal(*)
|
68
|
-
NotImplementedError
|
68
|
+
raise NotImplementedError
|
69
69
|
end
|
70
70
|
|
71
71
|
def filesystem_status
|
72
|
-
NotImplementedError
|
72
|
+
raise NotImplementedError
|
73
73
|
end
|
74
74
|
|
75
75
|
def content
|
76
|
-
NotImplementedError
|
76
|
+
raise NotImplementedError
|
77
77
|
end
|
78
78
|
|
79
79
|
def wait
|
80
|
-
NotImplementedError
|
80
|
+
raise NotImplementedError
|
81
81
|
end
|
82
82
|
|
83
83
|
# Restart a command
|
data/lib/aruba/setup.rb
CHANGED
@@ -36,11 +36,11 @@ module Aruba
|
|
36
36
|
runtime.event_bus.register(
|
37
37
|
:command_started,
|
38
38
|
proc do |event|
|
39
|
-
runtime.announcer.announce
|
40
|
-
runtime.announcer.announce
|
41
|
-
runtime.announcer.announce
|
42
|
-
runtime.announcer.announce
|
43
|
-
runtime.announcer.announce
|
39
|
+
runtime.announcer.announce(:command) { event.entity.commandline }
|
40
|
+
runtime.announcer.announce(:timeout, 'exit') { event.entity.exit_timeout }
|
41
|
+
runtime.announcer.announce(:timeout, 'io wait') { event.entity.io_wait_timeout }
|
42
|
+
runtime.announcer.announce(:wait_time, 'startup wait time') { event.entity.startup_wait_time }
|
43
|
+
runtime.announcer.announce(:full_environment) { event.entity.environment }
|
44
44
|
end
|
45
45
|
)
|
46
46
|
|
data/lib/aruba/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aruba
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.
|
4
|
+
version: 0.14.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aslak Hellesøy
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2019-
|
16
|
+
date: 2019-09-25 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: cucumber
|
@@ -38,7 +38,7 @@ dependencies:
|
|
38
38
|
version: 0.6.3
|
39
39
|
- - "<"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version:
|
41
|
+
version: 4.0.0
|
42
42
|
type: :runtime
|
43
43
|
prerelease: false
|
44
44
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -48,7 +48,7 @@ dependencies:
|
|
48
48
|
version: 0.6.3
|
49
49
|
- - "<"
|
50
50
|
- !ruby/object:Gem::Version
|
51
|
-
version:
|
51
|
+
version: 4.0.0
|
52
52
|
- !ruby/object:Gem::Dependency
|
53
53
|
name: ffi
|
54
54
|
requirement: !ruby/object:Gem::Requirement
|
@@ -482,8 +482,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
482
482
|
- !ruby/object:Gem::Version
|
483
483
|
version: '0'
|
484
484
|
requirements: []
|
485
|
-
rubygems_version: 3.0.
|
485
|
+
rubygems_version: 3.0.6
|
486
486
|
signing_key:
|
487
487
|
specification_version: 4
|
488
|
-
summary: aruba-0.14.
|
488
|
+
summary: aruba-0.14.12
|
489
489
|
test_files: []
|