Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to include failed screenshots into the codeception report

Tags:

codeception

Just started using codeception 2.0.9 and have installed it with phantomjs and got some sample tests running.

Codeception gives a concise html report at the end that summarises passed tests in red and green, which is nice. In the reporting directory there is also a screenshot of failed tests, e.g. ExampleCest.CheckLabel.fail.png ExampleCest.CheckLabel.fail.html

Question, how can these be (automatically) linked into report.html so that one can see the failed screenshots from the report in the browser?

like image 513
boran Avatar asked Jan 13 '15 10:01

boran


1 Answers

Yes, there is a enhancement (#3602) to include screenshot in the report, but it's not release in the current version (2.2).

HTML report to include screenshots of failures from WebDriver

You can check this feature status at https://github.com/Codeception/Codeception/pull/3602.

like image 170
Gabriel Glenn Avatar answered Nov 19 '22 23:11

Gabriel Glenn