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 25 forks source link

When using config.profile_examples each thread outputs the slowest examples making the output harder to read #39

Open danielnc opened 1 year ago

danielnc commented 1 year ago

Is there a way to aggregate all slow profile examples at the end, or even get the real top 10 slowest examples when using turbo_tests?

When we have that enabled, after each thread ends it shows the slowest output, making it hard to read the tests since they end at different times

ilyazub commented 1 year ago

Hey, @danielnc! The profile notification would require implementing dump_profile in JsonRowsFormatter and Reporter classes, and in the loop in runner.rb.

Here's the ProfileNotification constructor arguments in rspec-core: https://github.com/rspec/rspec-core/blob/d6e320dc11f77d0898fda32a33ddee3d17b14d00/lib/rspec/core/notifications.rb#L429-L430