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
173 stars 26 forks source link

How to generate spec runtimes? #27

Open john-h-k opened 1 year ago

john-h-k commented 1 year ago

I want to regenerate an old parallel_runtime_rspec.log, but how to do it with this gem is unclear

ilyazub commented 1 year ago

Thanks for your question, @john-h-k.

The runtime log is updated automatically. The default path is ./tmp/turbo_rspec_runtime.log.

The --runtime-log FILE option provides a way to change the log file path. Introduced in #16.

bundle exec turbo_tests --runtime-log tmp/parallel_runtime_rspec.log
john-h-k commented 1 year ago

For me that file is empty after every run

ilyazub commented 1 year ago

Thanks! Can confirm it's a bug.

$ bundle exec turbo_tests  --runtime-log tmp/some_log.log ./spec/lib/
# Omitted...

$ ls tmp/some_log.log
ls: cannot access 'tmp/some_log.log': No such file or directory