aruba 0.14.9 → 0.14.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (150) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +2 -0
  3. data/.travis.yml +17 -37
  4. data/CHANGELOG.md +30 -0
  5. data/Gemfile +11 -1
  6. data/features/{getting_started/cleanup.feature → 01_getting_started_with_aruba/cleanup_working_directory.feature} +4 -5
  7. data/features/{getting_started → 01_getting_started_with_aruba}/run_commands.feature +45 -15
  8. data/features/{getting_started → 01_getting_started_with_aruba}/supported_testing_frameworks.feature +5 -21
  9. data/features/{configuration → 02_configure_aruba}/activate_announcer_on_command_failure.feature +2 -2
  10. data/features/{configuration/usage.feature → 02_configure_aruba/basics.feature} +21 -29
  11. data/features/{configuration → 02_configure_aruba}/command_runtime_environment.feature +0 -0
  12. data/features/{configuration → 02_configure_aruba}/console_history_file.feature +2 -2
  13. data/features/{configuration → 02_configure_aruba}/exit_timeout.feature +25 -17
  14. data/features/{configuration → 02_configure_aruba}/fixtures_directories.feature +2 -2
  15. data/features/{configuration → 02_configure_aruba}/fixtures_path_prefix.feature +1 -1
  16. data/features/{configuration → 02_configure_aruba}/home_directory.feature +6 -6
  17. data/features/{configuration → 02_configure_aruba}/io_timeout.feature +2 -2
  18. data/features/{configuration → 02_configure_aruba}/keep_ansi.feature +0 -0
  19. data/features/{configuration → 02_configure_aruba}/log_level.feature +2 -2
  20. data/features/{configuration → 02_configure_aruba}/physical_block_size.feature +3 -3
  21. data/features/{configuration → 02_configure_aruba}/remove_ansi_escape_sequences.feature +2 -2
  22. data/features/{configuration → 02_configure_aruba}/root_directory.feature +1 -1
  23. data/features/{configuration → 02_configure_aruba}/startup_wait_time.feature +2 -2
  24. data/features/{configuration → 02_configure_aruba}/working_directory.feature +9 -4
  25. data/features/{steps/core/announce.feature → 03_testing_frameworks/cucumber/announce_information_for_troubleshooting.feature} +20 -40
  26. data/features/{steps/environment → 03_testing_frameworks/cucumber}/disable_bunder.feature +0 -0
  27. data/features/{steps/command/exit_statuses.feature → 03_testing_frameworks/cucumber/steps/command/check_for_exit_statuses.feature} +20 -20
  28. data/features/{steps/command/output.feature → 03_testing_frameworks/cucumber/steps/command/check_output_of_command.feature} +58 -111
  29. data/features/{steps/command/stderr.feature → 03_testing_frameworks/cucumber/steps/command/check_stderr_of_command.feature} +1 -1
  30. data/features/{steps/command/stdout.feature → 03_testing_frameworks/cucumber/steps/command/check_stdout_of_command.feature} +6 -6
  31. data/features/{steps/command/debug.feature → 03_testing_frameworks/cucumber/steps/command/debug_your_command_in_aruba.feature} +6 -6
  32. data/features/{steps/command/run.feature → 03_testing_frameworks/cucumber/steps/command/run_a_command.feature} +4 -4
  33. data/features/{steps/command/in_process.feature → 03_testing_frameworks/cucumber/steps/command/run_command_in_process.feature} +2 -2
  34. data/features/{steps/command/interactive.feature → 03_testing_frameworks/cucumber/steps/command/run_command_interactively.feature} +2 -2
  35. data/features/03_testing_frameworks/cucumber/steps/command/run_commands_which_require_a_shell.feature +79 -0
  36. data/features/{steps/command/send_signal.feature → 03_testing_frameworks/cucumber/steps/command/send_signal_to_command.feature} +19 -40
  37. data/features/{steps/command/stop.feature → 03_testing_frameworks/cucumber/steps/command/stop_command.feature} +47 -75
  38. data/features/{steps → 03_testing_frameworks/cucumber/steps}/environment/append_environment_variable.feature +3 -3
  39. data/features/{steps/environment/home_variable.feature → 03_testing_frameworks/cucumber/steps/environment/modify_home_variable_for_testing.feature} +4 -4
  40. data/features/{steps → 03_testing_frameworks/cucumber/steps}/environment/prepend_environment_variable.feature +3 -3
  41. data/features/{steps → 03_testing_frameworks/cucumber/steps}/environment/set_environment_variable.feature +3 -3
  42. data/features/{steps → 03_testing_frameworks/cucumber/steps}/filesystem/append_to_file.feature +0 -0
  43. data/features/{steps → 03_testing_frameworks/cucumber/steps}/filesystem/cd_to_directory.feature +0 -0
  44. data/features/{steps/filesystem/existence_of_directory.feature → 03_testing_frameworks/cucumber/steps/filesystem/check_existence_of_directory.feature} +0 -0
  45. data/features/{steps/filesystem/existence_of_file.feature → 03_testing_frameworks/cucumber/steps/filesystem/check_existence_of_file.feature} +0 -0
  46. data/features/{steps/filesystem/file_content.feature → 03_testing_frameworks/cucumber/steps/filesystem/check_file_content.feature} +57 -0
  47. data/features/{steps/filesystem/non_existence_of_directory.feature → 03_testing_frameworks/cucumber/steps/filesystem/check_non_existence_of_directory.feature} +0 -0
  48. data/features/{steps/filesystem/non_existence_of_file.feature → 03_testing_frameworks/cucumber/steps/filesystem/check_non_existence_of_file.feature} +0 -0
  49. data/features/{steps → 03_testing_frameworks/cucumber/steps}/filesystem/check_permissions_of_file.feature +0 -0
  50. data/features/{steps → 03_testing_frameworks/cucumber/steps}/filesystem/compare_files.feature +0 -0
  51. data/features/{steps/filesystem/copy.feature → 03_testing_frameworks/cucumber/steps/filesystem/copy_file_or_directory.feature} +0 -0
  52. data/features/{steps → 03_testing_frameworks/cucumber/steps}/filesystem/create_directory.feature +0 -0
  53. data/features/{steps → 03_testing_frameworks/cucumber/steps}/filesystem/create_file.feature +0 -0
  54. data/features/{steps/filesystem/move.feature → 03_testing_frameworks/cucumber/steps/filesystem/move_file_or_directory.feature} +0 -1
  55. data/features/{steps → 03_testing_frameworks/cucumber/steps}/filesystem/overwrite_file.feature +0 -0
  56. data/features/{steps → 03_testing_frameworks/cucumber/steps}/filesystem/remove_directory.feature +0 -0
  57. data/features/{steps → 03_testing_frameworks/cucumber/steps}/filesystem/remove_file.feature +0 -0
  58. data/features/{steps/filesystem/use_fixture.feature → 03_testing_frameworks/cucumber/steps/filesystem/use_fixtures_for_setup_test.feature} +0 -0
  59. data/features/{hooks/after/command.feature → 03_testing_frameworks/rspec/hooks/define_after_hook_for_commands.feature} +1 -4
  60. data/features/{hooks/before/command.feature → 03_testing_frameworks/rspec/hooks/define_before_hook_for_commands.feature} +1 -5
  61. data/features/{rspec/integration.feature → 03_testing_frameworks/rspec/setup_aruba_for_rspec.feature} +17 -17
  62. data/features/{api/command/find_command.feature → 04_aruba_api/command/find_a_started_command.feature} +0 -0
  63. data/features/{api/command/which.feature → 04_aruba_api/command/find_command_in_PATH.feature} +4 -4
  64. data/features/{api/command/stderr.feature → 04_aruba_api/command/read_stderr_of_command.feature} +8 -8
  65. data/features/{api/command/stdout.feature → 04_aruba_api/command/read_stdout_of_command.feature} +7 -7
  66. data/features/{api/command/run.feature → 04_aruba_api/command/run_command.feature} +53 -44
  67. data/features/{api → 04_aruba_api}/command/run_simple.feature +46 -34
  68. data/features/{api/command/send_signal.feature → 04_aruba_api/command/send_signal_to_command.feature} +8 -8
  69. data/features/{api → 04_aruba_api}/command/stop_all_commands.feature +18 -14
  70. data/features/{api/command/stop.feature → 04_aruba_api/command/stop_single_command.feature} +19 -18
  71. data/features/{api → 04_aruba_api}/command/terminate_all_commands.feature +16 -12
  72. data/features/{api/command/last_command_started.feature → 04_aruba_api/command/use_last_command_started.feature} +0 -0
  73. data/features/{api/command/last_command_stopped.feature → 04_aruba_api/command/use_last_command_stopped.feature} +2 -2
  74. data/features/{api → 04_aruba_api}/core/expand_path.feature +0 -0
  75. data/features/{api → 04_aruba_api}/environment/append_environment_variable.feature +0 -0
  76. data/features/{api → 04_aruba_api}/environment/delete_environment_variable.feature +0 -0
  77. data/features/{api → 04_aruba_api}/environment/prepend_environment_variable.feature +0 -0
  78. data/features/{api → 04_aruba_api}/environment/set_environment_variable.feature +0 -0
  79. data/features/{api/filesystem/cd.feature → 04_aruba_api/filesystem/cd_to_directory.feature} +0 -0
  80. data/features/{api/filesystem/does_exist.feature → 04_aruba_api/filesystem/check_existence_file_or_directory.feature} +0 -0
  81. data/features/{api/filesystem/is_absolute.feature → 04_aruba_api/filesystem/check_if_path_is_absolute.feature} +0 -0
  82. data/features/{api/filesystem/is_directory.feature → 04_aruba_api/filesystem/check_if_path_is_directory.feature} +0 -0
  83. data/features/{api/filesystem/is_file.feature → 04_aruba_api/filesystem/check_if_path_is_file.feature} +0 -0
  84. data/features/{api/filesystem/is_relative.feature → 04_aruba_api/filesystem/check_if_path_is_relative.feature} +0 -0
  85. data/features/{api → 04_aruba_api}/filesystem/create_directory.feature +0 -0
  86. data/features/{api/filesystem/move.feature → 04_aruba_api/filesystem/move_file_or_directory.feature} +0 -0
  87. data/features/{api/filesystem/disk_usage.feature → 04_aruba_api/filesystem/report_disk_usage.feature} +0 -0
  88. data/features/{api/filesystem/fixtures.feature → 04_aruba_api/filesystem/use_fixtures.feature} +0 -0
  89. data/features/{api → 04_aruba_api}/text/extract_text.feature +8 -8
  90. data/features/{api → 04_aruba_api}/text/replace_variables.feature +2 -2
  91. data/features/{api → 04_aruba_api}/text/sanitize_text.feature +22 -22
  92. data/features/{api → 04_aruba_api}/text/unescape_text.feature +12 -12
  93. data/features/{matchers/timeouts.feature → 05_use_rspec_matchers/command/check_timeouts.feature} +4 -4
  94. data/features/{matchers → 05_use_rspec_matchers}/directory/have_sub_directory.feature +0 -0
  95. data/features/{matchers → 05_use_rspec_matchers}/file/be_a_command_found_in_path.feature +0 -0
  96. data/features/{matchers → 05_use_rspec_matchers}/file/be_existing_executable.feature +0 -0
  97. data/features/{matchers → 05_use_rspec_matchers}/file/be_existing_file.feature +0 -0
  98. data/features/{matchers → 05_use_rspec_matchers}/file/have_file_content.feature +0 -0
  99. data/features/{matchers → 05_use_rspec_matchers}/file/have_file_size.feature +0 -0
  100. data/features/{matchers → 05_use_rspec_matchers}/path/be_an_absolute_path.feature +0 -0
  101. data/features/{matchers → 05_use_rspec_matchers}/path/be_an_existing_path.feature +0 -0
  102. data/features/{matchers → 05_use_rspec_matchers}/path/have_permissions.feature +4 -4
  103. data/features/{cli/init.feature → 06_use_aruba_cli/initialize_project_with_aruba.feature} +0 -0
  104. data/features/{cli/console.feature → 06_use_aruba_cli/open_console.feature} +0 -0
  105. data/features/08_other/improve_performance_if_using_jruby.feature +37 -0
  106. data/features/step_definitions/hooks.rb +0 -10
  107. data/features/support/env.rb +1 -1
  108. data/features/support/simplecov_setup.rb +9 -6
  109. data/fixtures/cli-app/bin/{cli → aruba-test-cli} +0 -0
  110. data/fixtures/cli-app/spec/spec_helper.rb +1 -0
  111. data/fixtures/empty-app/lib/cli/app.rb +0 -6
  112. data/lib/aruba/api/commands.rb +24 -0
  113. data/lib/aruba/api/core.rb +9 -2
  114. data/lib/aruba/api/deprecated.rb +2 -73
  115. data/lib/aruba/api/filesystem.rb +1 -1
  116. data/lib/aruba/colorizer.rb +10 -99
  117. data/lib/aruba/config/jruby.rb +15 -5
  118. data/lib/aruba/cucumber.rb +1 -0
  119. data/lib/aruba/cucumber/command.rb +63 -93
  120. data/lib/aruba/cucumber/deprecated.rb +93 -0
  121. data/lib/aruba/cucumber/file.rb +0 -12
  122. data/lib/aruba/cucumber/hooks.rb +0 -44
  123. data/lib/aruba/in_process.rb +2 -0
  124. data/lib/aruba/matchers/string/output_string_eq.rb +1 -1
  125. data/lib/aruba/platforms/announcer.rb +1 -1
  126. data/lib/aruba/platforms/command_monitor.rb +0 -3
  127. data/lib/aruba/processes/spawn_process.rb +17 -5
  128. data/lib/aruba/spawn_process.rb +4 -1
  129. data/lib/aruba/version.rb +1 -1
  130. data/script/bootstrap +0 -4
  131. data/spec/aruba/api/core_spec.rb +142 -0
  132. data/spec/aruba/api/deprecated_spec.rb +113 -0
  133. data/spec/aruba/api/filesystem_spec.rb +746 -0
  134. data/spec/aruba/api_spec.rb +1 -885
  135. data/spec/aruba/jruby_spec.rb +46 -28
  136. data/spec/aruba/{spawn_process_spec.rb → processes/spawn_process_spec.rb} +18 -2
  137. data/spec/spec_helper.rb +5 -3
  138. metadata +108 -115
  139. data/features/development/build.feature +0 -15
  140. data/features/getting_started/writing_good_feature_tests.feature +0 -38
  141. data/features/matchers/collection/include_an_object.feature +0 -72
  142. data/features/platforms/jruby.feature +0 -14
  143. data/features/step_definitions/aruba_dev_steps.rb +0 -56
  144. data/features/steps/command/shell.feature +0 -155
  145. data/features/steps/filesystem/check_file_content.feature +0 -61
  146. data/features/steps/filesystem/fixtures.feature +0 -64
  147. data/features/steps/overview.feature +0 -25
  148. data/spec/aruba/api/environment/restore_env_spec.rb +0 -86
  149. data/spec/aruba/api/environment/set_env_spec.rb +0 -46
  150. data/spec/aruba/api/filesystem/file_size_spec.rb +0 -28
@@ -2,54 +2,72 @@ require 'spec_helper'
2
2
  require 'aruba/api'
3
3
 
4
4
  describe "Aruba JRuby Startup Helper" do
5
- before(:all) do
6
- @fake_env = ENV.clone
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 :each do
13
+ before do
10
14
  Aruba.config.reset
11
15
 
12
- # Define before_cmd-hook
16
+ # Define before :command hook
13
17
  load 'aruba/config/jruby.rb'
14
18
  end
15
19
 
16
- before(:each) do
17
- @fake_env['JRUBY_OPTS'] = "--1.9"
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
- before :each do
29
- Aruba.config.before :command, self
30
- end
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
- it { expect(ENV['JRUBY_OPTS']).to eq '--1.9' }
33
- it { expect(ENV['JAVA_OPTS']).to eq '-Xdebug' }
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 jruby ruby' do
37
- before :each do
38
- stub_const('RUBY_PLATFORM', 'java')
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
- before :each do
42
- rb_config = double('rb_config')
43
- allow(rb_config).to receive(:[]).and_return('solaris')
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
- stub_const 'RbConfig::CONFIG', rb_config
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
- Aruba.config.before :command, self
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 { expect(ENV['JRUBY_OPTS']).to eq '--dev -X-C --1.9' }
53
- it { expect(ENV['JAVA_OPTS']).to eq '-d32 -Xdebug' }
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
@@ -2,9 +2,11 @@
2
2
 
3
3
  $LOAD_PATH << ::File.expand_path('../../lib', __FILE__)
4
4
 
5
- require 'simplecov'
6
- SimpleCov.command_name 'rspec'
7
- SimpleCov.start
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.9
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-03-18 00:00:00.000000000 Z
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/api/command/find_command.feature
158
- - features/api/command/last_command_started.feature
159
- - features/api/command/last_command_stopped.feature
160
- - features/api/command/run.feature
161
- - features/api/command/run_simple.feature
162
- - features/api/command/send_signal.feature
163
- - features/api/command/stderr.feature
164
- - features/api/command/stdout.feature
165
- - features/api/command/stop.feature
166
- - features/api/command/stop_all_commands.feature
167
- - features/api/command/terminate_all_commands.feature
168
- - features/api/command/which.feature
169
- - features/api/core/expand_path.feature
170
- - features/api/environment/append_environment_variable.feature
171
- - features/api/environment/delete_environment_variable.feature
172
- - features/api/environment/prepend_environment_variable.feature
173
- - features/api/environment/set_environment_variable.feature
174
- - features/api/filesystem/cd.feature
175
- - features/api/filesystem/create_directory.feature
176
- - features/api/filesystem/disk_usage.feature
177
- - features/api/filesystem/does_exist.feature
178
- - features/api/filesystem/fixtures.feature
179
- - features/api/filesystem/is_absolute.feature
180
- - features/api/filesystem/is_directory.feature
181
- - features/api/filesystem/is_file.feature
182
- - features/api/filesystem/is_relative.feature
183
- - features/api/filesystem/move.feature
184
- - features/api/text/extract_text.feature
185
- - features/api/text/replace_variables.feature
186
- - features/api/text/sanitize_text.feature
187
- - features/api/text/unescape_text.feature
188
- - features/cli/console.feature
189
- - features/cli/init.feature
190
- - features/configuration/activate_announcer_on_command_failure.feature
191
- - features/configuration/command_runtime_environment.feature
192
- - features/configuration/console_history_file.feature
193
- - features/configuration/exit_timeout.feature
194
- - features/configuration/fixtures_directories.feature
195
- - features/configuration/fixtures_path_prefix.feature
196
- - features/configuration/home_directory.feature
197
- - features/configuration/io_timeout.feature
198
- - features/configuration/keep_ansi.feature
199
- - features/configuration/log_level.feature
200
- - features/configuration/physical_block_size.feature
201
- - features/configuration/remove_ansi_escape_sequences.feature
202
- - features/configuration/root_directory.feature
203
- - features/configuration/startup_wait_time.feature
204
- - features/configuration/usage.feature
205
- - features/configuration/working_directory.feature
206
- - features/development/build.feature
207
- - features/getting_started/cleanup.feature
208
- - features/getting_started/run_commands.feature
209
- - features/getting_started/supported_testing_frameworks.feature
210
- - features/getting_started/writing_good_feature_tests.feature
211
- - features/hooks/after/command.feature
212
- - features/hooks/before/command.feature
213
- - features/matchers/collection/include_an_object.feature
214
- - features/matchers/directory/have_sub_directory.feature
215
- - features/matchers/file/be_a_command_found_in_path.feature
216
- - features/matchers/file/be_existing_executable.feature
217
- - features/matchers/file/be_existing_file.feature
218
- - features/matchers/file/have_file_content.feature
219
- - features/matchers/file/have_file_size.feature
220
- - features/matchers/path/be_an_absolute_path.feature
221
- - features/matchers/path/be_an_existing_path.feature
222
- - features/matchers/path/have_permissions.feature
223
- - features/matchers/timeouts.feature
224
- - features/platforms/jruby.feature
225
- - features/rspec/integration.feature
226
- - features/step_definitions/aruba_dev_steps.rb
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/environment/restore_env_spec.rb
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.9
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
- ```