Custom cucumber override

cucumber

#1

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

  override:
    - 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
        files:
          - features/*.feature```

#2

Can you change cucumber.cucumber to tests.cucumber?


#3

I still get the same type of error :confused:

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

#4

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


#5

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.


#6

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


#7