RyanS
March 3, 2017, 6:51pm
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```
levlaz
March 3, 2017, 8:32pm
2
Can you change cucumber.cucumber
to tests.cucumber
?
RyanS
March 3, 2017, 9:27pm
3
I still get the same type of error
Error creating formatter: json (Errno::ENOENT)```
RyanS
March 4, 2017, 1:56am
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
RyanS
March 4, 2017, 3:51pm
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.
1 Like
zzak
March 15, 2017, 6:23am
6
Thanks for following up @RyanS ! We’re glad that you were able to resolve this issue.