ElkanRoelen / behatformatter

Behat 3 Twig formatter
Other
17 stars 17 forks source link

Scenario Outline screenshots overwrite previous loops #1

Closed codycraven closed 7 years ago

codycraven commented 7 years ago

Screenshots in Scenario Outlines overwrite screenshots from prior iteration(s) of that scenario outline.

I'm working to add a unique identifier for each Scenario Outline in the filename of the screenshot. The simplest solution appeared to be $this->currentScenario->getLine(), however the result of that function is different in BehatFormatterContext.php (returns current example line) compared to BehatFormatter.php (return scenario definition line).

ElkanRoelen commented 7 years ago

Thanks for your commit @codycraven. It enjoys me to see other people involved.