Skip to content

Commit

Permalink
WIP: Fix 02_config and help with testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mvz committed Nov 15, 2024
1 parent 1525fdc commit d8284a0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion features/02_configure_aruba/basics.feature
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Feature: Usage of configuration
end
context 'when slow command' do
before { run_command('aruba-test-cli 1') }
before { run_command('aruba-test-cli 1.4') }
it { expect(last_command_started).not_to be_successfully_executed }
end
end
Expand Down
4 changes: 4 additions & 0 deletions features/support/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
require 'aruba/config/jruby'
require 'rspec/expectations'

Aruba.configure do |config|
config.activate_announcer_on_command_failure = %i[stderr stdout command]
end

Before do |test_case|
command_name = "#{test_case.location.file}:#{test_case.location.line} # #{test_case.name}"

Expand Down
6 changes: 4 additions & 2 deletions lib/aruba/cucumber/testing_frameworks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@

# RSpec
Then(/^the spec(?:s)? should all pass$/) do
step 'the output should contain "0 failures"'
step 'the exit status should be 0'
aggregate_failures do
expect(all_output).to include_output_string ' 0 failures'
expect(last_command_stopped).to have_exit_status 0
end
end

# RSpec
Expand Down

0 comments on commit d8284a0

Please sign in to comment.