rake spec을 병렬로 실행하기

혹시 rake spec 작업을 병렬로 실행해 본 분이 계신가요?

CI 및 로컬 개발 환경에서 테스트를 병렬로 실행합니다. 직접 사용해 보려면 다음을 실행할 수 있습니다:

bin/rake parallel:create
bin/rake parallel:migrate
bin/turbo_rspec

감사합니다, 정말 멋진 것 같아요!

로컬 개발 환경에서 실행하려면 먼저 다음 문제를 수정해야 했습니다:

ERROR: permission denied to create database
Tasks: TOP => db:create
(See full trace by running task with --trace)
PG::InsufficientPrivilege: ERROR:  permission denied to create database
Couldn't create 'discourse_test_32' database. Please check your configuration.
rake aborted!
ActiveRecord::StatementInvalid: PG::InsufficientPrivilege: ERROR:  permission denied to create database

Caused by:
PG::InsufficientPrivilege: ERROR:  permission denied to create database
# switch into container
d/shell_root

# inside container - root@discourse:/#
sudo -u postgres psql

# psql - postgres=#
ALTER USER discourse CREATEDB;
exit

# inside container - root@discourse:/#
exit

이제 컨테이너 내부에서도 정상적으로 작동합니다:

d/rake parallel:create
d/rake parallel:migrate
d/exec bin/turbo_rspec

Finished in 3 minutes 11.6 seconds (files took 0 seconds to load) :rocket:
16015 examples, 12 failures, 10 pending, 3 errors occurred outside of examples