Details
-
Story
-
Resolution: Unresolved
-
Medium
-
None
-
4.5.x-dev, 4.6.x-dev
-
None
Description
Our current Visual Testing solution is built on top of Behat and does not take full advatnage of Behat features - because it's not fully integrated with it.
The biggest obstacle is that Behat views our Tests as a single Scenario:
1 scenario (1 failed) 1 step (1 failed) 2m17.79s (88.78Mb)
and is not aware that there are multiple tests running inside it.
Hooking into Behat test process would allow us to use more Behat features, most importantly:
1) use Behat result reporting
2) take failed screenshots after every failure
Approach:
it might be possible to write a custom Specification Locator (https://github.com/Behat/Behat/tree/master/src/Behat/Behat/Gherkin/Specification/Locator) that loads our current test definitions