You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
default:
suites:
default:
contexts:
- emuse\BehatHTMLFormatter\Context\ScreenshotContext:
screenshotDir: /app/tests/screenshots
formatters:
html:
# Where to put the HTML report
output_path: "%paths.base%"
extensions:
emuse\BehatHTMLFormatter\BehatHTMLFormatterExtension:
name: html
renderer: Twig,Behat2,Minimal
# file_name: index
print_args: true
print_outp: true
loop_break: true
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
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: