Open ptmkenny opened 4 years ago
Ah, I see. I had to specify --format html --out MYDIRECTORY
in the command like this:
behat /app/tests/behat/features/ -c /app/tests/behat/behat-lando-selenium.yml --tags '@testme' --format html --out /app/tests/reports`
I humbly request that you update the documentation with a new section called "behat command" so that people can more easily understand what they need to do to get this working.
I tried to install this via composer using the instructions in the README, but it isn't working.
composer.json
behat.yml
behat command
/app/vendor/bin/behat /app/tests/behat/features/ -c /app/tests/behat/behat-lando.yml --tags '@testme' --clear-screenshots
Result:
Screenshots are generated properly, both by this extension and by Behat Fail Aid. But, no report is generated. I don't see an error in my test output, but there is no report, either.
So I tried adding a report option on the command line like this:
/app/vendor/bin/behat /app/tests/behat/features/ -c /app/tests/behat/behat-lando-selenium.yml --tags '@testme' --clear-screenshots --format html
This gives me the following error:
So I changed the
output_path
to my screenshots directory, but I am still getting the error when I try to output the report. This is strange to me because the screenshots are output correctly to the same directory, but the report has this permissions error.How do I generate the report?