Rspec do not run in parallel

Hi

We’ve go our circle.yml setup as the following. However, the same Rspec tests are run on both nodes in parallel instead of getting split. Cucumber seems to parallel just fine. Any help will appreciated.

Regards,
Sahu

test:
  pre:
    - mkdir -p $CIRCLE_TEST_REPORTS/rubocop
  override:
    - cd front-end && npm run lint:sass
    - cd front-end && npm run lint:js
    - cd front-end && npm run test:ci:
        environment:
          MOCHA_FILE: $CIRCLE_TEST_REPORTS/mocha/junit.xml
    - bundle exec rubocop -r rubocop/formatter/junit_formatter --format RuboCop::Formatter::JUnitFormatter -o $CIRCLE_TEST_REPORTS/rubocop/junit.xml --format progress
    - bundle exec rspec spec --color --require rails_helper --format documentation --format RspecJunitFormatter --out $CIRCLE_TEST_REPORTS/rspec/junit.xml:
        parallel: true
        files:
          - "spec/**/*_spec.rb"
    - bundle exec cucumber --format pretty --format junit --out $CIRCLE_TEST_REPORTS/cucumber/junit.xml:
        parallel: true
        files:
          - "features/*.feature"

@saurabh.sahu were you able to find a solution to this problem? I’m trying to test the manual setup for parallelizing tests.

@saurabh.sahu @germsvel

I was having a similar issue and realized that the “inferred” test command had been overridden in the CircleCI web UI for our project.