dutchiexl / BehatHtmlFormatterPlugin

This is a behat plugin to generate HTML reports
MIT License
112 stars 117 forks source link

Put screenshot folder creation recursively #106

Closed chadyred closed 5 years ago

chadyred commented 5 years ago

Why ?

Folder for screenshot is :

reports/behat/assets/screenshots/Testrecipelist/AsauserIshouldseerecipeuntilIeditit.png

But it cant be create

Warning: mkdir(): No such file or directory in vendor/emuse/behat-html-formatter/src/Context/ScreenshotContext.php line 47

As recurssive option by default is false. Not recursive by default : http://php.net/manual/fr/function.mkdir.php

How ?

Put this parameter to true.

chadyred commented 5 years ago

@dutchiexl Simple PR

PurHur commented 5 years ago

Thanks