How can I run parallel rspec with 2.0?

ruby
rspec
paralellism
2.0

#1

How exactly does it work?

I’m trying to run circleci tests glob spec/features/**/* | circleci tests split but how to run rspec?
split returns weird the input device is not a TTY though

Thanks!


#2
TESTFILES=$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)
bundle exec rspec --profile 10 --format RspecJunitFormatter --out test-results/rspec.xml --format progress -- ${TESTFILES}

#3

Works great! Thanks a lot! <3 <3 <3


#4