Custom cucumber override

According to the docs you can do this to run a cucumber test:

    - mkdir -p $CIRCLE_TEST_REPORTS/cucumber
    - bundle exec cucumber --format pretty --format json --out $CIRCLE_TEST_REPORTS/cucumber/tests.cucumber

When doing this on circle I get this error

Error creating formatter: json (Errno::ENOENT)```

When using this command:

```- mkdir -p ${CIRCLE_TEST_REPORTS}/cucumber    
- xvfb-run -a bundle exec cucumber --format=pretty --format=json --out ${CIRCLE_TEST_REPORTS}/cucumber/cucumber.cucumber:
        parallel: true
          - features/*.feature```

Can you change cucumber.cucumber to tests.cucumber?

I still get the same type of error :confused:

Error creating formatter: json (Errno::ENOENT)```

It appears the mkdir command is only executing on container 0. Perhaps I am missing how to do it on the other containers in the circle.yml file

so for the mkdir command to house the out files you have to specify parallel: true for that as well. It makes sense now but could probably use a note in the docs.

1 Like

Thanks for following up @RyanS! We’re glad that you were able to resolve this issue.