grosser / parallel_tests

Ruby: 2 CPUs = 2x Testing Speed for RSpec, Test::Unit and Cucumber
3.39k stars 495 forks source link

Multi-DB commands parallel:<command>:<database> #967

Open elemisek opened 4 months ago

elemisek commented 4 months ago

Commands such as rake parallel:create:<database> are failing for me. I've tried both with the names from database.yml and the actual db names, but the error suggests there might be an issue with the syntax.

README:

(Multi-DB) Create individual database

rake parallel:create:<database>
rake parallel:create:secondary

ERROR:

> rake parallel:create:primary
rake aborted!
Don't know how to build task 'parallel:create:primary' (See the list of available tasks with `rake --tasks`)
Did you mean?  parallel:create
grosser commented 4 months ago

these should come from https://github.com/grosser/parallel_tests/blob/master/lib/parallel_tests/tasks.rb#L169 so bundle open parallel_tests and see why it does not work, maybe db config is not loaded at that point