Circle 2.0 and test parallelization with rspec based on historic timing

cci-20

#1

Coming from Circle 1.0, I’m doing this in Circle 2.0 in order to parallelize tests by historic test timing

  bundle exec rspec --profile 10 \
    --format RspecJunitFormatter \
    --out /tmp/test-results/rspec.xml \
    --format documentation \
    $(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)

Does this still need to depend on timing metadata generated by RspecJunitFormatter like in Circle 1.0, or can that be taken out from the command above now?


#2

Hello,

Thank you for your question.

Yes, you will still need to install the rspec_junit_formatter gem in your Gemfile in order to print test reports we can display on the build summary; as well as collect historic timing from your tests.


#3

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.