serpapi / turbo_tests

Run RSpec tests on multiple cores. Like parallel_tests but with incremental summarized output. Originally extracted from the Discourse and Rubygems source code.
https://rubygems.org/gems/turbo_tests
MIT License
174 stars 26 forks source link

Support --default-path command-line option #13

Open cesarizu opened 3 years ago

cesarizu commented 3 years ago

rspec and parallel_tests support the --default-path option. This is useful, for example, when running specs inside an engine where one would define that as the default path.

Maybe unknown command-line options should be passed directly to parallel_rspec to avoid having to define each possible one?

ilyazub commented 3 years ago

Maybe unknown command-line options should be passed directly to parallel_rspec to avoid having to define each possible one?

I like that idea but currently unknown options are treated as spec files (source). I'll think about a way to implement it.

https://github.com/serpapi/turbo_tests/blob/f2530104b6c6962076faaa7d04bb0fb53e00a3d1/lib/turbo_tests/cli.rb#L92

cesarizu commented 3 years ago

A few options:

ilyazub commented 3 years ago

Thanks for ideas :+1: Btw, turbo_tests executes RSpec directly instead. parallel_spec is used to group spec files.