Open louim opened 3 years ago
@louim Thank you, Louis!
--test-options
option from parallel_tests
is a great idea I overlooked. It will solve #13 too.
Steps to implement it:
opts.on("-o", "--test-options '[OPTIONS]'")
to TurboTests::CLI#run
like in ParallelTests::CLI#parse_options!
TurboTests::Runner
: .run
-> #initialize
-> #start_regular_subprocess
. Merge test_options
with @tags
before passing to start_subprocess
.Things to consider:
-o, --out FILE
and -t, --tag TAG
. They can be passed via test-options
: --test-options '--tag TAG --tag TAG2 --out rspec.txt'
Help is appreciated.
Would this also resolve something like passing --require spec_helper
to rspec? Currently having difficulty loading require 'webmock/rspec'
when running turbo_tests.
Would this also resolve something like passing
--require spec_helper
to rspec? Currently having difficulty loadingrequire 'webmock/rspec'
when running turbo_tests.
@OneNeptune Can you please provide a repository with reproduction? We use webmock/rspec
without any issues.
I'd like to be able to use this with Guard, like it's possible with to do with
parallel_rspec
. However this is not currently possible with because guard passes specific options to rspec. Running guard fails with:Because turbo_tests choke on the options passed. It would be useful to support possing down options to Rspec via a specific flag.