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: Doc formatter contexts #7

Closed smileart closed 3 years ago

smileart commented 3 years ago

This PR addresses an issue https://github.com/serpapi/turbo_tests/issues/3 by adding the context output with proper indentation through RSpec's standard DocumentationFormatter methods.

I added the sample code right to the specs to simplify at least the visual validation of the solution. You can test it by running:

bundler exec turbo_tests --format=documentation

Which with this fix in place is supposed to output the following:

image