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

Fix: Loading time summary not being reflected in the report #8

Closed smileart closed 3 years ago

smileart commented 3 years ago

This PR fixes the issue https://github.com/serpapi/turbo_tests/issues/1 about capturing the file load time.

To visualize the effect I added a slight delay in the spec, which gets evaluated on loading, therefore adding more loading time which gets correctly reflected in the summary report.

Additionally I took the liberty of improving the rounding of "specs per process" value, e.g. with 7 specs and 4 processes now it reports ~2 specs per process. 😊

Lastly, I merged in my previous PR https://github.com/serpapi/turbo_tests/pull/7, resolved the conflicts, and bumped the version relative to the current master.