forceedge01 / behat-fail-aid

Get more out of your test suite by getting it to work with you when tests fail. Works with Goutte and MinkExtension (Selenium2Driver)
MIT License
28 stars 6 forks source link

Allow host machine path for screenshots #32

Closed forceedge01 closed 4 years ago

forceedge01 commented 4 years ago

What is the issue? When running tests in a container, the screenshot path printed is not relavent.

How did it happen? Happens by default.

What should have happened? An option should be provided to set the host machine file path, the file would still be created in the same place but when displaying the path it should use this path.

forceedge01 commented 4 years ago

Issue with implementation, missing pre-date from path generated for file:

hostDirectory: /Users/wahabqureshi/projects/official/dixons/isaac-ui/build/Behaviour/Failures/

Actual: file:///Users/wahabqureshi/projects/official/dixons/isaac-ui/build/Behaviour/Failures/1578502148.3245.png Expected: file:///Users/wahabqureshi/projects/official/dixons/isaac-ui/build/Behaviour/Failures/20200108-1578502148.3245.png

Note the missing "20200108-" in the filename.

forceedge01 commented 4 years ago

Fixed.