I tried in my behat.yml and put the template inside my /support dir, but no help.
default:
formatter:
name: html
parameters:
template_path: html.tpl
Any ideas?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can extend a custom class from the existing
HtmlFormatterto explicitly set your html template.PHP
Then update your
behat.ymlfile to point to your custom class.behat.yml (Optional – Only needed if you don’t use
--formatin your behat command line.)Behat
Finally, run
behatwith the following command:If you want to specify this formatter directly then do:
Note that you need the
\\to properly send the class name.