How do I echo the list of files run in parallel?

circle.yml

#1

Hello! I’ve scoured docs & support requests, and I can’t find if this question has been answered. We recently switched to 2.0, and we no longer receive the list of files that are being run for each parallel process. We’ve used this in the past to debug our non-deterministic tests, and we’d love to have it back.

Anyone know a command which will echo the suite of files being run?

Our current parallel test command:

- run:
    name: Run rspec tests (in parallel)...
    command: |
      bundle exec $(bundle show parallel_test)/bin/parallel_rspec \
        $(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings --timings-type=filename)

#2

if you store the results of the splitting, you can echo it out normally:

TESTFILES=$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings --timings-type=filename)
echo $TESTFILES
bundle exec $(bundle show parallel_test)/bin/parallel_rspec -- ${TESTFILES}

Out of curiosity (I’m trying to get parallelism in 2.0 working properly myself), how do you set things up in bin/parallel_rspec?


#3

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