Parallel Tests not splitting on 2.0

circle.yml
2.0

#1

I am trying to get parallelism to split our tests on 2.0 with a Rails/RSpec app.
The top of my config.yml looks like the following:

version: 2
jobs:
  build:
    working_directory: ~/vinterior-app
    docker:
      - image: circleci/ruby:2.3-node-browsers
        environment:
          PGHOST: localhost
          PGUSER: vinterior-app
          RAILS_ENV: test
      - image: circleci/postgres:10.3
        environment:
          POSTGRES_USER: vinterior-app
          POSTGRES_DB: vinterior-app_test
          POSTGRES_PASSWORD: ""
    parallelism: 2

the point where I start the tests looks like the following which I picked up from the community:

      - run:
          name: run tests
          type: shell
          command: |
            TESTFILES=$(circleci tests glob "spec/**/*.rb" | circleci tests split)
            bundle exec rspec --format progress -- ${TESTFILES}

and our /spec directory looks like the below screenshot with further folders within

Any help would be greatly appreciated.

Cheers


#2

Could you echo $TESTFILES for both containers and paste it here?