Skip to content

Commit

Permalink
Merge pull request #679 from bugsnag/fix-config-options
Browse files Browse the repository at this point in the history
Fix loading maze options from config files
  • Loading branch information
Cawllec authored Oct 8, 2024
2 parents 8cff410 + 66fe076 commit 7467cf3
Show file tree
Hide file tree
Showing 14 changed files with 18 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ steps:
env:
RUBY_VERSION: "2"
USE_LEGACY_DRIVER: "1"
command: 'bundle exec maze-runner -e features/fixtures'
command: 'bundle exec maze-runner'

- label: 'No-device tests with Ruby 2 - batch 2'
timeout_in_minutes: 30
Expand All @@ -166,7 +166,7 @@ steps:
env:
RUBY_VERSION: "2"
USE_LEGACY_DRIVER: "1"
command: 'bundle exec maze-runner -e features/fixtures'
command: 'bundle exec maze-runner'

- label: 'No-device tests with Ruby 3 - batch 1'
timeout_in_minutes: 30
Expand All @@ -184,7 +184,7 @@ steps:
run: http-response-tests
env:
RUBY_VERSION: "3"
command: 'bundle exec maze-runner -e features/fixtures'
command: 'bundle exec maze-runner'

- label: 'No-device tests with Ruby 3 - batch 2'
timeout_in_minutes: 30
Expand All @@ -202,7 +202,7 @@ steps:
run: command-workflow-tests
env:
RUBY_VERSION: "3"
command: 'bundle exec maze-runner -e features/fixtures'
command: 'bundle exec maze-runner'

#
# BrowserStack tests
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Fixes

- Add dependencies for modules no longer present in Ruby standard lib for v3.3+ [678](https://github.com/bugsnag/maze-runner/pull/678)
- Fix issues with loading maze-runner commands from file [679](https://github.com/bugsnag/maze-runner/pull/679)

# 9.14.0 - 2024-09-23

Expand Down
4 changes: 2 additions & 2 deletions bin/maze-runner
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ class MazeRunnerEntry

# Parse args, processing any Maze Runner specific options
@args = args.dup
options = Maze::Option::Parser.parse args
load_options_from_files
options = Maze::Option::Parser.parse @args

if options[Maze::Option::LIST_DEVICES]
case options[Maze::Option::FARM].to_sym
Expand Down Expand Up @@ -211,7 +212,6 @@ class MazeRunnerEntry
Maze::Option::Processor.populate Maze.config, options

# Adjust CL options before calling down to Cucumber
load_options_from_files
remove_maze_runner_args
add_cucumber_args

Expand Down
1 change: 1 addition & 0 deletions test/fixtures/cli/features/support/maze.all.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--exclude=features/fixtures
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--exclude=features/fixtures
1 change: 1 addition & 0 deletions test/fixtures/comparison/features/support/maze.all.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--exclude=features/fixtures
1 change: 1 addition & 0 deletions test/fixtures/doc-server/features/support/maze.all.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--exclude=features/fixtures
1 change: 1 addition & 0 deletions test/fixtures/docker-app/features/support/maze.all.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--exclude=features/fixtures
1 change: 1 addition & 0 deletions test/fixtures/exit-codes/features/support/maze.all.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--exclude=features/fixtures
1 change: 1 addition & 0 deletions test/fixtures/framework/features/support/maze.all.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--exclude=features/fixtures
1 change: 1 addition & 0 deletions test/fixtures/http-response/features/support/maze.all.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--exclude=features/fixtures
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--exclude=features/fixtures
1 change: 1 addition & 0 deletions test/fixtures/proxy/features/support/maze.all.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--exclude=features/fixtures
1 change: 1 addition & 0 deletions test/fixtures/validation/features/support/maze.all.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--exclude=features/fixtures

0 comments on commit 7467cf3

Please sign in to comment.