aruba 0.14.9 → 0.14.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +2 -0
- data/.travis.yml +17 -37
- data/CHANGELOG.md +30 -0
- data/Gemfile +11 -1
- data/features/{getting_started/cleanup.feature → 01_getting_started_with_aruba/cleanup_working_directory.feature} +4 -5
- data/features/{getting_started → 01_getting_started_with_aruba}/run_commands.feature +45 -15
- data/features/{getting_started → 01_getting_started_with_aruba}/supported_testing_frameworks.feature +5 -21
- data/features/{configuration → 02_configure_aruba}/activate_announcer_on_command_failure.feature +2 -2
- data/features/{configuration/usage.feature → 02_configure_aruba/basics.feature} +21 -29
- data/features/{configuration → 02_configure_aruba}/command_runtime_environment.feature +0 -0
- data/features/{configuration → 02_configure_aruba}/console_history_file.feature +2 -2
- data/features/{configuration → 02_configure_aruba}/exit_timeout.feature +25 -17
- data/features/{configuration → 02_configure_aruba}/fixtures_directories.feature +2 -2
- data/features/{configuration → 02_configure_aruba}/fixtures_path_prefix.feature +1 -1
- data/features/{configuration → 02_configure_aruba}/home_directory.feature +6 -6
- data/features/{configuration → 02_configure_aruba}/io_timeout.feature +2 -2
- data/features/{configuration → 02_configure_aruba}/keep_ansi.feature +0 -0
- data/features/{configuration → 02_configure_aruba}/log_level.feature +2 -2
- data/features/{configuration → 02_configure_aruba}/physical_block_size.feature +3 -3
- data/features/{configuration → 02_configure_aruba}/remove_ansi_escape_sequences.feature +2 -2
- data/features/{configuration → 02_configure_aruba}/root_directory.feature +1 -1
- data/features/{configuration → 02_configure_aruba}/startup_wait_time.feature +2 -2
- data/features/{configuration → 02_configure_aruba}/working_directory.feature +9 -4
- data/features/{steps/core/announce.feature → 03_testing_frameworks/cucumber/announce_information_for_troubleshooting.feature} +20 -40
- data/features/{steps/environment → 03_testing_frameworks/cucumber}/disable_bunder.feature +0 -0
- data/features/{steps/command/exit_statuses.feature → 03_testing_frameworks/cucumber/steps/command/check_for_exit_statuses.feature} +20 -20
- data/features/{steps/command/output.feature → 03_testing_frameworks/cucumber/steps/command/check_output_of_command.feature} +58 -111
- data/features/{steps/command/stderr.feature → 03_testing_frameworks/cucumber/steps/command/check_stderr_of_command.feature} +1 -1
- data/features/{steps/command/stdout.feature → 03_testing_frameworks/cucumber/steps/command/check_stdout_of_command.feature} +6 -6
- data/features/{steps/command/debug.feature → 03_testing_frameworks/cucumber/steps/command/debug_your_command_in_aruba.feature} +6 -6
- data/features/{steps/command/run.feature → 03_testing_frameworks/cucumber/steps/command/run_a_command.feature} +4 -4
- data/features/{steps/command/in_process.feature → 03_testing_frameworks/cucumber/steps/command/run_command_in_process.feature} +2 -2
- data/features/{steps/command/interactive.feature → 03_testing_frameworks/cucumber/steps/command/run_command_interactively.feature} +2 -2
- data/features/03_testing_frameworks/cucumber/steps/command/run_commands_which_require_a_shell.feature +79 -0
- data/features/{steps/command/send_signal.feature → 03_testing_frameworks/cucumber/steps/command/send_signal_to_command.feature} +19 -40
- data/features/{steps/command/stop.feature → 03_testing_frameworks/cucumber/steps/command/stop_command.feature} +47 -75
- data/features/{steps → 03_testing_frameworks/cucumber/steps}/environment/append_environment_variable.feature +3 -3
- data/features/{steps/environment/home_variable.feature → 03_testing_frameworks/cucumber/steps/environment/modify_home_variable_for_testing.feature} +4 -4
- data/features/{steps → 03_testing_frameworks/cucumber/steps}/environment/prepend_environment_variable.feature +3 -3
- data/features/{steps → 03_testing_frameworks/cucumber/steps}/environment/set_environment_variable.feature +3 -3
- data/features/{steps → 03_testing_frameworks/cucumber/steps}/filesystem/append_to_file.feature +0 -0
- data/features/{steps → 03_testing_frameworks/cucumber/steps}/filesystem/cd_to_directory.feature +0 -0
- data/features/{steps/filesystem/existence_of_directory.feature → 03_testing_frameworks/cucumber/steps/filesystem/check_existence_of_directory.feature} +0 -0
- data/features/{steps/filesystem/existence_of_file.feature → 03_testing_frameworks/cucumber/steps/filesystem/check_existence_of_file.feature} +0 -0
- data/features/{steps/filesystem/file_content.feature → 03_testing_frameworks/cucumber/steps/filesystem/check_file_content.feature} +57 -0
- data/features/{steps/filesystem/non_existence_of_directory.feature → 03_testing_frameworks/cucumber/steps/filesystem/check_non_existence_of_directory.feature} +0 -0
- data/features/{steps/filesystem/non_existence_of_file.feature → 03_testing_frameworks/cucumber/steps/filesystem/check_non_existence_of_file.feature} +0 -0
- data/features/{steps → 03_testing_frameworks/cucumber/steps}/filesystem/check_permissions_of_file.feature +0 -0
- data/features/{steps → 03_testing_frameworks/cucumber/steps}/filesystem/compare_files.feature +0 -0
- data/features/{steps/filesystem/copy.feature → 03_testing_frameworks/cucumber/steps/filesystem/copy_file_or_directory.feature} +0 -0
- data/features/{steps → 03_testing_frameworks/cucumber/steps}/filesystem/create_directory.feature +0 -0
- data/features/{steps → 03_testing_frameworks/cucumber/steps}/filesystem/create_file.feature +0 -0
- data/features/{steps/filesystem/move.feature → 03_testing_frameworks/cucumber/steps/filesystem/move_file_or_directory.feature} +0 -1
- data/features/{steps → 03_testing_frameworks/cucumber/steps}/filesystem/overwrite_file.feature +0 -0
- data/features/{steps → 03_testing_frameworks/cucumber/steps}/filesystem/remove_directory.feature +0 -0
- data/features/{steps → 03_testing_frameworks/cucumber/steps}/filesystem/remove_file.feature +0 -0
- data/features/{steps/filesystem/use_fixture.feature → 03_testing_frameworks/cucumber/steps/filesystem/use_fixtures_for_setup_test.feature} +0 -0
- data/features/{hooks/after/command.feature → 03_testing_frameworks/rspec/hooks/define_after_hook_for_commands.feature} +1 -4
- data/features/{hooks/before/command.feature → 03_testing_frameworks/rspec/hooks/define_before_hook_for_commands.feature} +1 -5
- data/features/{rspec/integration.feature → 03_testing_frameworks/rspec/setup_aruba_for_rspec.feature} +17 -17
- data/features/{api/command/find_command.feature → 04_aruba_api/command/find_a_started_command.feature} +0 -0
- data/features/{api/command/which.feature → 04_aruba_api/command/find_command_in_PATH.feature} +4 -4
- data/features/{api/command/stderr.feature → 04_aruba_api/command/read_stderr_of_command.feature} +8 -8
- data/features/{api/command/stdout.feature → 04_aruba_api/command/read_stdout_of_command.feature} +7 -7
- data/features/{api/command/run.feature → 04_aruba_api/command/run_command.feature} +53 -44
- data/features/{api → 04_aruba_api}/command/run_simple.feature +46 -34
- data/features/{api/command/send_signal.feature → 04_aruba_api/command/send_signal_to_command.feature} +8 -8
- data/features/{api → 04_aruba_api}/command/stop_all_commands.feature +18 -14
- data/features/{api/command/stop.feature → 04_aruba_api/command/stop_single_command.feature} +19 -18
- data/features/{api → 04_aruba_api}/command/terminate_all_commands.feature +16 -12
- data/features/{api/command/last_command_started.feature → 04_aruba_api/command/use_last_command_started.feature} +0 -0
- data/features/{api/command/last_command_stopped.feature → 04_aruba_api/command/use_last_command_stopped.feature} +2 -2
- data/features/{api → 04_aruba_api}/core/expand_path.feature +0 -0
- data/features/{api → 04_aruba_api}/environment/append_environment_variable.feature +0 -0
- data/features/{api → 04_aruba_api}/environment/delete_environment_variable.feature +0 -0
- data/features/{api → 04_aruba_api}/environment/prepend_environment_variable.feature +0 -0
- data/features/{api → 04_aruba_api}/environment/set_environment_variable.feature +0 -0
- data/features/{api/filesystem/cd.feature → 04_aruba_api/filesystem/cd_to_directory.feature} +0 -0
- data/features/{api/filesystem/does_exist.feature → 04_aruba_api/filesystem/check_existence_file_or_directory.feature} +0 -0
- data/features/{api/filesystem/is_absolute.feature → 04_aruba_api/filesystem/check_if_path_is_absolute.feature} +0 -0
- data/features/{api/filesystem/is_directory.feature → 04_aruba_api/filesystem/check_if_path_is_directory.feature} +0 -0
- data/features/{api/filesystem/is_file.feature → 04_aruba_api/filesystem/check_if_path_is_file.feature} +0 -0
- data/features/{api/filesystem/is_relative.feature → 04_aruba_api/filesystem/check_if_path_is_relative.feature} +0 -0
- data/features/{api → 04_aruba_api}/filesystem/create_directory.feature +0 -0
- data/features/{api/filesystem/move.feature → 04_aruba_api/filesystem/move_file_or_directory.feature} +0 -0
- data/features/{api/filesystem/disk_usage.feature → 04_aruba_api/filesystem/report_disk_usage.feature} +0 -0
- data/features/{api/filesystem/fixtures.feature → 04_aruba_api/filesystem/use_fixtures.feature} +0 -0
- data/features/{api → 04_aruba_api}/text/extract_text.feature +8 -8
- data/features/{api → 04_aruba_api}/text/replace_variables.feature +2 -2
- data/features/{api → 04_aruba_api}/text/sanitize_text.feature +22 -22
- data/features/{api → 04_aruba_api}/text/unescape_text.feature +12 -12
- data/features/{matchers/timeouts.feature → 05_use_rspec_matchers/command/check_timeouts.feature} +4 -4
- data/features/{matchers → 05_use_rspec_matchers}/directory/have_sub_directory.feature +0 -0
- data/features/{matchers → 05_use_rspec_matchers}/file/be_a_command_found_in_path.feature +0 -0
- data/features/{matchers → 05_use_rspec_matchers}/file/be_existing_executable.feature +0 -0
- data/features/{matchers → 05_use_rspec_matchers}/file/be_existing_file.feature +0 -0
- data/features/{matchers → 05_use_rspec_matchers}/file/have_file_content.feature +0 -0
- data/features/{matchers → 05_use_rspec_matchers}/file/have_file_size.feature +0 -0
- data/features/{matchers → 05_use_rspec_matchers}/path/be_an_absolute_path.feature +0 -0
- data/features/{matchers → 05_use_rspec_matchers}/path/be_an_existing_path.feature +0 -0
- data/features/{matchers → 05_use_rspec_matchers}/path/have_permissions.feature +4 -4
- data/features/{cli/init.feature → 06_use_aruba_cli/initialize_project_with_aruba.feature} +0 -0
- data/features/{cli/console.feature → 06_use_aruba_cli/open_console.feature} +0 -0
- data/features/08_other/improve_performance_if_using_jruby.feature +37 -0
- data/features/step_definitions/hooks.rb +0 -10
- data/features/support/env.rb +1 -1
- data/features/support/simplecov_setup.rb +9 -6
- data/fixtures/cli-app/bin/{cli → aruba-test-cli} +0 -0
- data/fixtures/cli-app/spec/spec_helper.rb +1 -0
- data/fixtures/empty-app/lib/cli/app.rb +0 -6
- data/lib/aruba/api/commands.rb +24 -0
- data/lib/aruba/api/core.rb +9 -2
- data/lib/aruba/api/deprecated.rb +2 -73
- data/lib/aruba/api/filesystem.rb +1 -1
- data/lib/aruba/colorizer.rb +10 -99
- data/lib/aruba/config/jruby.rb +15 -5
- data/lib/aruba/cucumber.rb +1 -0
- data/lib/aruba/cucumber/command.rb +63 -93
- data/lib/aruba/cucumber/deprecated.rb +93 -0
- data/lib/aruba/cucumber/file.rb +0 -12
- data/lib/aruba/cucumber/hooks.rb +0 -44
- data/lib/aruba/in_process.rb +2 -0
- data/lib/aruba/matchers/string/output_string_eq.rb +1 -1
- data/lib/aruba/platforms/announcer.rb +1 -1
- data/lib/aruba/platforms/command_monitor.rb +0 -3
- data/lib/aruba/processes/spawn_process.rb +17 -5
- data/lib/aruba/spawn_process.rb +4 -1
- data/lib/aruba/version.rb +1 -1
- data/script/bootstrap +0 -4
- data/spec/aruba/api/core_spec.rb +142 -0
- data/spec/aruba/api/deprecated_spec.rb +113 -0
- data/spec/aruba/api/filesystem_spec.rb +746 -0
- data/spec/aruba/api_spec.rb +1 -885
- data/spec/aruba/jruby_spec.rb +46 -28
- data/spec/aruba/{spawn_process_spec.rb → processes/spawn_process_spec.rb} +18 -2
- data/spec/spec_helper.rb +5 -3
- metadata +108 -115
- data/features/development/build.feature +0 -15
- data/features/getting_started/writing_good_feature_tests.feature +0 -38
- data/features/matchers/collection/include_an_object.feature +0 -72
- data/features/platforms/jruby.feature +0 -14
- data/features/step_definitions/aruba_dev_steps.rb +0 -56
- data/features/steps/command/shell.feature +0 -155
- data/features/steps/filesystem/check_file_content.feature +0 -61
- data/features/steps/filesystem/fixtures.feature +0 -64
- data/features/steps/overview.feature +0 -25
- data/spec/aruba/api/environment/restore_env_spec.rb +0 -86
- data/spec/aruba/api/environment/set_env_spec.rb +0 -46
- data/spec/aruba/api/filesystem/file_size_spec.rb +0 -28
data/spec/aruba/jruby_spec.rb
CHANGED
@@ -2,54 +2,72 @@ require 'spec_helper'
|
|
2
2
|
require 'aruba/api'
|
3
3
|
|
4
4
|
describe "Aruba JRuby Startup Helper" do
|
5
|
-
|
6
|
-
|
5
|
+
include Aruba::Api
|
6
|
+
|
7
|
+
let(:rb_config) { double('RbConfig::CONFIG') }
|
8
|
+
let(:command) do
|
9
|
+
instance_double(Aruba::Processes::BasicProcess, :environment => command_environment)
|
7
10
|
end
|
11
|
+
let(:command_environment) { { 'JRUBY_OPTS' => '--1.9', 'JAVA_OPTS' => '-Xdebug' } }
|
8
12
|
|
9
|
-
before
|
13
|
+
before do
|
10
14
|
Aruba.config.reset
|
11
15
|
|
12
|
-
# Define
|
16
|
+
# Define before :command hook
|
13
17
|
load 'aruba/config/jruby.rb'
|
14
18
|
end
|
15
19
|
|
16
|
-
|
17
|
-
|
18
|
-
@fake_env['JAVA_OPTS'] = "-Xdebug"
|
19
|
-
|
20
|
-
stub_const('ENV', @fake_env)
|
21
|
-
end
|
22
|
-
|
23
|
-
context 'when some mri ruby' do
|
24
|
-
before :each do
|
20
|
+
context 'when running under some MRI Ruby' do
|
21
|
+
before do
|
25
22
|
stub_const('RUBY_PLATFORM', 'x86_64-chocolate')
|
26
23
|
end
|
27
24
|
|
28
|
-
|
29
|
-
|
30
|
-
|
25
|
+
it 'keeps the existing JRUBY_OPTS and JAVA_OPTS environment values' do
|
26
|
+
# Run defined before :command hook
|
27
|
+
Aruba.config.before :command, self, command
|
31
28
|
|
32
|
-
|
33
|
-
|
29
|
+
aggregate_failures do
|
30
|
+
expect(command_environment['JRUBY_OPTS']).to eq '--1.9'
|
31
|
+
expect(command_environment['JAVA_OPTS']).to eq '-Xdebug'
|
32
|
+
end
|
33
|
+
end
|
34
34
|
end
|
35
35
|
|
36
|
-
context 'when
|
37
|
-
before
|
38
|
-
stub_const
|
36
|
+
context 'when running under JRuby but not on Solaris' do
|
37
|
+
before do
|
38
|
+
stub_const 'RUBY_PLATFORM', 'java'
|
39
|
+
stub_const 'RbConfig::CONFIG', rb_config
|
40
|
+
|
41
|
+
allow(rb_config).to receive(:[]).with('host_os').and_return('foo-os')
|
39
42
|
end
|
40
43
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
+
it 'updates the existing JRuby but not Java option values' do
|
45
|
+
# Run defined before :command hook
|
46
|
+
Aruba.config.before :command, self, command
|
44
47
|
|
45
|
-
|
48
|
+
aggregate_failures do
|
49
|
+
expect(command_environment['JRUBY_OPTS']).to eq '--dev -X-C --1.9'
|
50
|
+
expect(command_environment['JAVA_OPTS']).to eq '-Xdebug'
|
51
|
+
end
|
46
52
|
end
|
53
|
+
end
|
47
54
|
|
55
|
+
context 'when running under JRuby on Solaris' do
|
48
56
|
before :each do
|
49
|
-
|
57
|
+
stub_const 'RUBY_PLATFORM', 'java'
|
58
|
+
stub_const 'RbConfig::CONFIG', rb_config
|
59
|
+
|
60
|
+
allow(rb_config).to receive(:[]).with('host_os').and_return('solaris')
|
50
61
|
end
|
51
62
|
|
52
|
-
it
|
53
|
-
|
63
|
+
it 'keeps the existing JRuby and Java option values' do
|
64
|
+
# Run defined before :command hook
|
65
|
+
Aruba.config.before :command, self, command
|
66
|
+
|
67
|
+
aggregate_failures do
|
68
|
+
expect(command_environment['JRUBY_OPTS']).to eq '--dev -X-C --1.9'
|
69
|
+
expect(command_environment['JAVA_OPTS']).to eq '-d32 -Xdebug'
|
70
|
+
end
|
71
|
+
end
|
54
72
|
end
|
55
73
|
end
|
@@ -42,19 +42,35 @@ RSpec.describe Aruba::Processes::SpawnProcess do
|
|
42
42
|
before(:each) { process.start }
|
43
43
|
|
44
44
|
context 'when stopped successfully' do
|
45
|
-
it { process.stop }
|
45
|
+
it { expect { process.stop }.not_to raise_error }
|
46
|
+
|
47
|
+
it "leaves the process in the 'stopped' state" do
|
48
|
+
process.stop
|
49
|
+
aggregate_failures do
|
50
|
+
expect(process).to be_stopped
|
51
|
+
expect(process).not_to be_started
|
52
|
+
end
|
53
|
+
end
|
46
54
|
end
|
47
55
|
end
|
48
56
|
|
49
57
|
describe "#start" do
|
50
58
|
context "when process run succeeds" do
|
51
59
|
it { expect { process.start }.not_to raise_error }
|
60
|
+
|
61
|
+
it "leaves the process in the 'started' state" do
|
62
|
+
process.start
|
63
|
+
aggregate_failures do
|
64
|
+
expect(process).to be_started
|
65
|
+
expect(process).not_to be_stopped
|
66
|
+
end
|
67
|
+
end
|
52
68
|
end
|
53
69
|
|
54
70
|
context "when process run fails" do
|
55
71
|
let(:command) { 'does_not_exists' }
|
56
72
|
|
57
|
-
it { expect {process.start}.to raise_error Aruba::LaunchError }
|
73
|
+
it { expect { process.start }.to raise_error Aruba::LaunchError }
|
58
74
|
end
|
59
75
|
|
60
76
|
context 'with a command with a space in the path on unix' do
|
data/spec/spec_helper.rb
CHANGED
@@ -2,9 +2,11 @@
|
|
2
2
|
|
3
3
|
$LOAD_PATH << ::File.expand_path('../../lib', __FILE__)
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
SimpleCov.
|
5
|
+
unless RUBY_PLATFORM.include?('java')
|
6
|
+
require 'simplecov'
|
7
|
+
SimpleCov.command_name 'rspec'
|
8
|
+
SimpleCov.start
|
9
|
+
end
|
8
10
|
|
9
11
|
# Pull in all of the gems including those in the `test` group
|
10
12
|
require 'bundler'
|
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.10
|
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-06-08 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: cucumber
|
@@ -154,114 +154,107 @@ files:
|
|
154
154
|
- cucumber.yml
|
155
155
|
- doc/dependency_decisions.yml
|
156
156
|
- features/.nav
|
157
|
-
- features/
|
158
|
-
- features/
|
159
|
-
- features/
|
160
|
-
- features/
|
161
|
-
- features/
|
162
|
-
- features/
|
163
|
-
- features/
|
164
|
-
- features/
|
165
|
-
- features/
|
166
|
-
- features/
|
167
|
-
- features/
|
168
|
-
- features/
|
169
|
-
- features/
|
170
|
-
- features/
|
171
|
-
- features/
|
172
|
-
- features/
|
173
|
-
- features/
|
174
|
-
- features/
|
175
|
-
- features/
|
176
|
-
- features/
|
177
|
-
- features/
|
178
|
-
- features/
|
179
|
-
- features/
|
180
|
-
- features/
|
181
|
-
- features/
|
182
|
-
- features/
|
183
|
-
- features/
|
184
|
-
- features/
|
185
|
-
- features/
|
186
|
-
- features/
|
187
|
-
- features/
|
188
|
-
- features/
|
189
|
-
- features/
|
190
|
-
- features/
|
191
|
-
- features/
|
192
|
-
- features/
|
193
|
-
- features/
|
194
|
-
- features/
|
195
|
-
- features/
|
196
|
-
- features/
|
197
|
-
- features/
|
198
|
-
- features/
|
199
|
-
- features/
|
200
|
-
- features/
|
201
|
-
- features/
|
202
|
-
- features/
|
203
|
-
- features/
|
204
|
-
- features/
|
205
|
-
- features/
|
206
|
-
- features/
|
207
|
-
- features/
|
208
|
-
- features/
|
209
|
-
- features/
|
210
|
-
- features/
|
211
|
-
- features/hooks/
|
212
|
-
- features/
|
213
|
-
- features/
|
214
|
-
- features/
|
215
|
-
- features/
|
216
|
-
- features/
|
217
|
-
- features/
|
218
|
-
- features/
|
219
|
-
- features/
|
220
|
-
- features/
|
221
|
-
- features/
|
222
|
-
- features/
|
223
|
-
- features/
|
224
|
-
- features/
|
225
|
-
- features/
|
226
|
-
- features/
|
157
|
+
- features/01_getting_started_with_aruba/cleanup_working_directory.feature
|
158
|
+
- features/01_getting_started_with_aruba/run_commands.feature
|
159
|
+
- features/01_getting_started_with_aruba/supported_testing_frameworks.feature
|
160
|
+
- features/02_configure_aruba/activate_announcer_on_command_failure.feature
|
161
|
+
- features/02_configure_aruba/basics.feature
|
162
|
+
- features/02_configure_aruba/command_runtime_environment.feature
|
163
|
+
- features/02_configure_aruba/console_history_file.feature
|
164
|
+
- features/02_configure_aruba/exit_timeout.feature
|
165
|
+
- features/02_configure_aruba/fixtures_directories.feature
|
166
|
+
- features/02_configure_aruba/fixtures_path_prefix.feature
|
167
|
+
- features/02_configure_aruba/home_directory.feature
|
168
|
+
- features/02_configure_aruba/io_timeout.feature
|
169
|
+
- features/02_configure_aruba/keep_ansi.feature
|
170
|
+
- features/02_configure_aruba/log_level.feature
|
171
|
+
- features/02_configure_aruba/physical_block_size.feature
|
172
|
+
- features/02_configure_aruba/remove_ansi_escape_sequences.feature
|
173
|
+
- features/02_configure_aruba/root_directory.feature
|
174
|
+
- features/02_configure_aruba/startup_wait_time.feature
|
175
|
+
- features/02_configure_aruba/working_directory.feature
|
176
|
+
- features/03_testing_frameworks/cucumber/announce_information_for_troubleshooting.feature
|
177
|
+
- features/03_testing_frameworks/cucumber/disable_bunder.feature
|
178
|
+
- features/03_testing_frameworks/cucumber/steps/command/check_for_exit_statuses.feature
|
179
|
+
- features/03_testing_frameworks/cucumber/steps/command/check_output_of_command.feature
|
180
|
+
- features/03_testing_frameworks/cucumber/steps/command/check_stderr_of_command.feature
|
181
|
+
- features/03_testing_frameworks/cucumber/steps/command/check_stdout_of_command.feature
|
182
|
+
- features/03_testing_frameworks/cucumber/steps/command/debug_your_command_in_aruba.feature
|
183
|
+
- features/03_testing_frameworks/cucumber/steps/command/run_a_command.feature
|
184
|
+
- features/03_testing_frameworks/cucumber/steps/command/run_command_in_process.feature
|
185
|
+
- features/03_testing_frameworks/cucumber/steps/command/run_command_interactively.feature
|
186
|
+
- features/03_testing_frameworks/cucumber/steps/command/run_commands_which_require_a_shell.feature
|
187
|
+
- features/03_testing_frameworks/cucumber/steps/command/send_signal_to_command.feature
|
188
|
+
- features/03_testing_frameworks/cucumber/steps/command/stop_command.feature
|
189
|
+
- features/03_testing_frameworks/cucumber/steps/environment/append_environment_variable.feature
|
190
|
+
- features/03_testing_frameworks/cucumber/steps/environment/modify_home_variable_for_testing.feature
|
191
|
+
- features/03_testing_frameworks/cucumber/steps/environment/prepend_environment_variable.feature
|
192
|
+
- features/03_testing_frameworks/cucumber/steps/environment/set_environment_variable.feature
|
193
|
+
- features/03_testing_frameworks/cucumber/steps/filesystem/append_to_file.feature
|
194
|
+
- features/03_testing_frameworks/cucumber/steps/filesystem/cd_to_directory.feature
|
195
|
+
- features/03_testing_frameworks/cucumber/steps/filesystem/check_existence_of_directory.feature
|
196
|
+
- features/03_testing_frameworks/cucumber/steps/filesystem/check_existence_of_file.feature
|
197
|
+
- features/03_testing_frameworks/cucumber/steps/filesystem/check_file_content.feature
|
198
|
+
- features/03_testing_frameworks/cucumber/steps/filesystem/check_non_existence_of_directory.feature
|
199
|
+
- features/03_testing_frameworks/cucumber/steps/filesystem/check_non_existence_of_file.feature
|
200
|
+
- features/03_testing_frameworks/cucumber/steps/filesystem/check_permissions_of_file.feature
|
201
|
+
- features/03_testing_frameworks/cucumber/steps/filesystem/compare_files.feature
|
202
|
+
- features/03_testing_frameworks/cucumber/steps/filesystem/copy_file_or_directory.feature
|
203
|
+
- features/03_testing_frameworks/cucumber/steps/filesystem/create_directory.feature
|
204
|
+
- features/03_testing_frameworks/cucumber/steps/filesystem/create_file.feature
|
205
|
+
- features/03_testing_frameworks/cucumber/steps/filesystem/move_file_or_directory.feature
|
206
|
+
- features/03_testing_frameworks/cucumber/steps/filesystem/overwrite_file.feature
|
207
|
+
- features/03_testing_frameworks/cucumber/steps/filesystem/remove_directory.feature
|
208
|
+
- features/03_testing_frameworks/cucumber/steps/filesystem/remove_file.feature
|
209
|
+
- features/03_testing_frameworks/cucumber/steps/filesystem/use_fixtures_for_setup_test.feature
|
210
|
+
- features/03_testing_frameworks/rspec/hooks/define_after_hook_for_commands.feature
|
211
|
+
- features/03_testing_frameworks/rspec/hooks/define_before_hook_for_commands.feature
|
212
|
+
- features/03_testing_frameworks/rspec/setup_aruba_for_rspec.feature
|
213
|
+
- features/04_aruba_api/command/find_a_started_command.feature
|
214
|
+
- features/04_aruba_api/command/find_command_in_PATH.feature
|
215
|
+
- features/04_aruba_api/command/read_stderr_of_command.feature
|
216
|
+
- features/04_aruba_api/command/read_stdout_of_command.feature
|
217
|
+
- features/04_aruba_api/command/run_command.feature
|
218
|
+
- features/04_aruba_api/command/run_simple.feature
|
219
|
+
- features/04_aruba_api/command/send_signal_to_command.feature
|
220
|
+
- features/04_aruba_api/command/stop_all_commands.feature
|
221
|
+
- features/04_aruba_api/command/stop_single_command.feature
|
222
|
+
- features/04_aruba_api/command/terminate_all_commands.feature
|
223
|
+
- features/04_aruba_api/command/use_last_command_started.feature
|
224
|
+
- features/04_aruba_api/command/use_last_command_stopped.feature
|
225
|
+
- features/04_aruba_api/core/expand_path.feature
|
226
|
+
- features/04_aruba_api/environment/append_environment_variable.feature
|
227
|
+
- features/04_aruba_api/environment/delete_environment_variable.feature
|
228
|
+
- features/04_aruba_api/environment/prepend_environment_variable.feature
|
229
|
+
- features/04_aruba_api/environment/set_environment_variable.feature
|
230
|
+
- features/04_aruba_api/filesystem/cd_to_directory.feature
|
231
|
+
- features/04_aruba_api/filesystem/check_existence_file_or_directory.feature
|
232
|
+
- features/04_aruba_api/filesystem/check_if_path_is_absolute.feature
|
233
|
+
- features/04_aruba_api/filesystem/check_if_path_is_directory.feature
|
234
|
+
- features/04_aruba_api/filesystem/check_if_path_is_file.feature
|
235
|
+
- features/04_aruba_api/filesystem/check_if_path_is_relative.feature
|
236
|
+
- features/04_aruba_api/filesystem/create_directory.feature
|
237
|
+
- features/04_aruba_api/filesystem/move_file_or_directory.feature
|
238
|
+
- features/04_aruba_api/filesystem/report_disk_usage.feature
|
239
|
+
- features/04_aruba_api/filesystem/use_fixtures.feature
|
240
|
+
- features/04_aruba_api/text/extract_text.feature
|
241
|
+
- features/04_aruba_api/text/replace_variables.feature
|
242
|
+
- features/04_aruba_api/text/sanitize_text.feature
|
243
|
+
- features/04_aruba_api/text/unescape_text.feature
|
244
|
+
- features/05_use_rspec_matchers/command/check_timeouts.feature
|
245
|
+
- features/05_use_rspec_matchers/directory/have_sub_directory.feature
|
246
|
+
- features/05_use_rspec_matchers/file/be_a_command_found_in_path.feature
|
247
|
+
- features/05_use_rspec_matchers/file/be_existing_executable.feature
|
248
|
+
- features/05_use_rspec_matchers/file/be_existing_file.feature
|
249
|
+
- features/05_use_rspec_matchers/file/have_file_content.feature
|
250
|
+
- features/05_use_rspec_matchers/file/have_file_size.feature
|
251
|
+
- features/05_use_rspec_matchers/path/be_an_absolute_path.feature
|
252
|
+
- features/05_use_rspec_matchers/path/be_an_existing_path.feature
|
253
|
+
- features/05_use_rspec_matchers/path/have_permissions.feature
|
254
|
+
- features/06_use_aruba_cli/initialize_project_with_aruba.feature
|
255
|
+
- features/06_use_aruba_cli/open_console.feature
|
256
|
+
- features/08_other/improve_performance_if_using_jruby.feature
|
227
257
|
- features/step_definitions/hooks.rb
|
228
|
-
- features/steps/command/debug.feature
|
229
|
-
- features/steps/command/exit_statuses.feature
|
230
|
-
- features/steps/command/in_process.feature
|
231
|
-
- features/steps/command/interactive.feature
|
232
|
-
- features/steps/command/output.feature
|
233
|
-
- features/steps/command/run.feature
|
234
|
-
- features/steps/command/send_signal.feature
|
235
|
-
- features/steps/command/shell.feature
|
236
|
-
- features/steps/command/stderr.feature
|
237
|
-
- features/steps/command/stdout.feature
|
238
|
-
- features/steps/command/stop.feature
|
239
|
-
- features/steps/core/announce.feature
|
240
|
-
- features/steps/environment/append_environment_variable.feature
|
241
|
-
- features/steps/environment/disable_bunder.feature
|
242
|
-
- features/steps/environment/home_variable.feature
|
243
|
-
- features/steps/environment/prepend_environment_variable.feature
|
244
|
-
- features/steps/environment/set_environment_variable.feature
|
245
|
-
- features/steps/filesystem/append_to_file.feature
|
246
|
-
- features/steps/filesystem/cd_to_directory.feature
|
247
|
-
- features/steps/filesystem/check_file_content.feature
|
248
|
-
- features/steps/filesystem/check_permissions_of_file.feature
|
249
|
-
- features/steps/filesystem/compare_files.feature
|
250
|
-
- features/steps/filesystem/copy.feature
|
251
|
-
- features/steps/filesystem/create_directory.feature
|
252
|
-
- features/steps/filesystem/create_file.feature
|
253
|
-
- features/steps/filesystem/existence_of_directory.feature
|
254
|
-
- features/steps/filesystem/existence_of_file.feature
|
255
|
-
- features/steps/filesystem/file_content.feature
|
256
|
-
- features/steps/filesystem/fixtures.feature
|
257
|
-
- features/steps/filesystem/move.feature
|
258
|
-
- features/steps/filesystem/non_existence_of_directory.feature
|
259
|
-
- features/steps/filesystem/non_existence_of_file.feature
|
260
|
-
- features/steps/filesystem/overwrite_file.feature
|
261
|
-
- features/steps/filesystem/remove_directory.feature
|
262
|
-
- features/steps/filesystem/remove_file.feature
|
263
|
-
- features/steps/filesystem/use_fixture.feature
|
264
|
-
- features/steps/overview.feature
|
265
258
|
- features/support/aruba.rb
|
266
259
|
- features/support/env.rb
|
267
260
|
- features/support/jruby.rb
|
@@ -270,7 +263,7 @@ files:
|
|
270
263
|
- fixtures/cli-app/.rspec
|
271
264
|
- fixtures/cli-app/README.md
|
272
265
|
- fixtures/cli-app/Rakefile
|
273
|
-
- fixtures/cli-app/bin/cli
|
266
|
+
- fixtures/cli-app/bin/aruba-test-cli
|
274
267
|
- fixtures/cli-app/cli-app.gemspec
|
275
268
|
- fixtures/cli-app/features/support/env.rb
|
276
269
|
- fixtures/cli-app/lib/cli/app.rb
|
@@ -319,6 +312,7 @@ files:
|
|
319
312
|
- lib/aruba/cucumber.rb
|
320
313
|
- lib/aruba/cucumber/command.rb
|
321
314
|
- lib/aruba/cucumber/core.rb
|
315
|
+
- lib/aruba/cucumber/deprecated.rb
|
322
316
|
- lib/aruba/cucumber/environment.rb
|
323
317
|
- lib/aruba/cucumber/file.rb
|
324
318
|
- lib/aruba/cucumber/hooks.rb
|
@@ -407,10 +401,9 @@ files:
|
|
407
401
|
- script/console
|
408
402
|
- script/test
|
409
403
|
- spec/aruba/api/bundler_spec.rb
|
404
|
+
- spec/aruba/api/core_spec.rb
|
410
405
|
- spec/aruba/api/deprecated_spec.rb
|
411
|
-
- spec/aruba/api/
|
412
|
-
- spec/aruba/api/environment/set_env_spec.rb
|
413
|
-
- spec/aruba/api/filesystem/file_size_spec.rb
|
406
|
+
- spec/aruba/api/filesystem_spec.rb
|
414
407
|
- spec/aruba/api/runtime_spec.rb
|
415
408
|
- spec/aruba/api_spec.rb
|
416
409
|
- spec/aruba/aruba_path_spec.rb
|
@@ -429,9 +422,9 @@ files:
|
|
429
422
|
- spec/aruba/platform/windows_environment_variables_spec.rb
|
430
423
|
- spec/aruba/platforms/unix_command_string_spec.rb
|
431
424
|
- spec/aruba/platforms/windows_command_string_spec.rb
|
425
|
+
- spec/aruba/processes/spawn_process_spec.rb
|
432
426
|
- spec/aruba/rspec_spec.rb
|
433
427
|
- spec/aruba/runtime_spec.rb
|
434
|
-
- spec/aruba/spawn_process_spec.rb
|
435
428
|
- spec/event_bus/name_resolver_spec.rb
|
436
429
|
- spec/event_bus_spec.rb
|
437
430
|
- spec/spec_helper.rb
|
@@ -492,5 +485,5 @@ requirements: []
|
|
492
485
|
rubygems_version: 3.0.3
|
493
486
|
signing_key:
|
494
487
|
specification_version: 4
|
495
|
-
summary: aruba-0.14.
|
488
|
+
summary: aruba-0.14.10
|
496
489
|
test_files: []
|
@@ -1,15 +0,0 @@
|
|
1
|
-
Feature: Build Aruba Gem
|
2
|
-
|
3
|
-
As a aruba developer
|
4
|
-
I want to build the `aruba` gem
|
5
|
-
In order to install it
|
6
|
-
|
7
|
-
Scenario: Building aruba using rake task
|
8
|
-
|
9
|
-
To build the `aruba`-gem you can use the `build`-rake task.
|
10
|
-
|
11
|
-
Given I successfully run `rake -T build`
|
12
|
-
Then the output should contain:
|
13
|
-
"""
|
14
|
-
build
|
15
|
-
"""
|
@@ -1,38 +0,0 @@
|
|
1
|
-
Feature: Writing good feature tests with aruba to create documentations
|
2
|
-
|
3
|
-
You can use Markdown within your feature tests. This is quite good to write a
|
4
|
-
living documentation.
|
5
|
-
|
6
|
-
There are some edge cases where Gherkin and Markdown don't agree. Bullet lists
|
7
|
-
using `*` is one example. The `*` is also an alias for step keywords in
|
8
|
-
Gherkin. Markdown headers (the kind starting with a `#`) is another example.
|
9
|
-
They are parsed as comments by Gherkin. To use either of these, just escape
|
10
|
-
them with a backslash. Alternatively just use the "-".
|
11
|
-
|
12
|
-
You'd write:
|
13
|
-
|
14
|
-
```gherkin
|
15
|
-
Scenario: Make tea
|
16
|
-
\## Making tea
|
17
|
-
\* Get a pot
|
18
|
-
\* And some hot water
|
19
|
-
|
20
|
-
Given...
|
21
|
-
```
|
22
|
-
|
23
|
-
This way Gherkin won't recognize these lines as special tokens, and the
|
24
|
-
reporter will render them as Markdown. (The reporter strips away any leading
|
25
|
-
the backslashes before handing it off to the Markdown parser).
|
26
|
-
|
27
|
-
Another option is to use alternative Markdown syntax and omit conflicts and
|
28
|
-
escaping altogether:
|
29
|
-
|
30
|
-
```gherkin
|
31
|
-
Scenario: Make tea
|
32
|
-
Making tea
|
33
|
-
----------
|
34
|
-
- Get a pot
|
35
|
-
- And some hot water
|
36
|
-
|
37
|
-
Given...
|
38
|
-
```
|