{"id":13521360,"url":"https://github.com/serpapi/turbo_tests","last_synced_at":"2025-05-14T20:03:11.674Z","repository":{"id":42695311,"uuid":"308452443","full_name":"serpapi/turbo_tests","owner":"serpapi","description":"Run RSpec tests on multiple cores. Like parallel_tests but with incremental summarized output. Originally extracted from the Discourse and Rubygems source code.","archived":false,"fork":false,"pushed_at":"2025-03-10T11:51:10.000Z","size":124,"stargazers_count":188,"open_issues_count":28,"forks_count":28,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-01T10:06:21.633Z","etag":null,"topics":["parallel-tests","rspec","ruby"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/turbo_tests","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/serpapi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-29T21:20:12.000Z","updated_at":"2025-03-10T11:49:11.000Z","dependencies_parsed_at":"2023-11-22T18:42:40.350Z","dependency_job_id":"d2e6e0d9-bdaf-4745-8d1a-e8d7a3bbc208","html_url":"https://github.com/serpapi/turbo_tests","commit_stats":{"total_commits":86,"total_committers":14,"mean_commits":6.142857142857143,"dds":0.7325581395348837,"last_synced_commit":"aeae4ff0f18fb2d3fbb4800a0c3fada70b8d910c"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serpapi%2Fturbo_tests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serpapi%2Fturbo_tests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serpapi%2Fturbo_tests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serpapi%2Fturbo_tests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serpapi","download_url":"https://codeload.github.com/serpapi/turbo_tests/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247829490,"owners_count":21002995,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["parallel-tests","rspec","ruby"],"created_at":"2024-08-01T06:00:33.312Z","updated_at":"2025-04-08T11:06:53.586Z","avatar_url":"https://github.com/serpapi.png","language":"Ruby","readme":"\u003ch1 align=\"center\"\u003e\n  TurboTests\n\u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n   \u003cimg src=\"https://user-images.githubusercontent.com/78694043/233910064-87a6d557-1120-42d2-b965-2a9403c6f2f4.svg\" width=\"500\" alt=\"Turbo-Tests\"\u003e\n\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n  ![Tests](https://github.com/serpapi/turbo_tests/workflows/Tests/badge.svg)\n\n\u003c/div\u003e\n\n`turbo_tests` is a drop-in replacement for [`grosser/parallel_tests`](https://github.com/grosser/parallel_tests) with incremental summarized output. Source code of this gem is based on [Discourse](https://github.com/discourse/discourse/blob/6b9784cf8a18636bce281a7e4d18e65a0cbc6290/lib/turbo_tests.rb) and [RubyGems](https://github.com/rubygems/rubygems/tree/390335ceb351668cd433bd5bb9823dd021f82533/bundler/tool) work in this area.\n\nIncremental summarized output [doesn't fit vision of `parallel_tests` author](https://github.com/grosser/parallel_tests/issues/708) and [RSpec doesn't support built-in parallel testing yet](https://github.com/rspec/rspec-rails/issues/2104#issuecomment-658474900). This gem will not be useful once one of the issues above will be implemented.\n\n## Why incremental output?\n\n`parallel_tests` is great, but it messes output:\n\n```bash\n\n$ bundle exec rake parallel_tests:spec[^spec/search]\n.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................\n\nFinished in 1 minute 6.92 seconds (files took 6.95 seconds to load)\n2616 examples, 0 failures\n\n.........................................................................................................................................F........................................................................................................................................F..............................................................................................................................................................................................................................................................................................\n\nFinished in 1 minute 35.05 seconds (files took 6.26 seconds to load)\n2158 examples, 2 failures\n\n.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................\n\nFinished in 1 minute 35.05 seconds (files took 6.26 seconds to load)\n2158 examples, 0 failures\n```\n\n`turbo_tests` output looks like regular `rspec`:\n\n```bash\n$ bundle exec turbo_tests\n..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F........................................................................................................................................F..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................\n\nFinished in 2 minute 25.15 seconds (files took 0 seconds to load)\n6873 examples, 2 failures\n```\n\n## Installation\n\nAdd this line to your application's `Gemfile`:\n\n```ruby\ngem 'turbo_tests'\n```\n\nAnd then execute:\n\n```bash\n$ bundle install\n```\n\nOr install it yourself as:\n\n```bash\n$ gem install turbo_tests\n```\n\n## Usage\n\nExecute tests:\n\n```bash\n$ bundle exec turbo_tests\n```\n\nShow help:\n\n```bash\n$ bundle exec turbo_tests -h\nUsage: turbo_tests [options]\n\n[optional] Only selected files \u0026 folders:\n  turbo_tests spec/bar spec/baz/xxx_spec.rb\n\nOptions:\n    -n [PROCESSES]                   How many processes to use, default: available CPUs\n    -r, --require PATH               Require a file.\n    -f, --format FORMATTER           Choose a formatter. Available formatters: progress (p), documentation (d). Default: progress\n    -t, --tag TAG                    Run examples with the specified tag.\n    -o, --out FILE                   Write output to a file instead of $stdout\n        --runtime-log FILE           Location of previously recorded test runtimes\n    -v, --verbose                    More output\n        --fail-fast=[N]\n        --seed SEED                  Seed for rspec\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/serpapi/turbo_tests. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/serpapi/turbo_tests/blob/master/CODE_OF_CONDUCT.md).\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the TurboTests project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/serpapi/turbo_tests/blob/master/CODE_OF_CONDUCT.md).\n","funding_links":[],"categories":["Ruby","Parallel execution","Testing"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserpapi%2Fturbo_tests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserpapi%2Fturbo_tests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserpapi%2Fturbo_tests/lists"}