BehatHtmlFormatterPlugin
BehatHtmlFormatterPlugin copied to clipboard
Rendering issues when a large number of items are present
When a large amount of features/scenarios/steps are present in a report, the rendering of the page starts showing strange behaviour.
It looks as though the page is rendering, but then a lot of the information is lost, and everything collapses in a weird order.
I've attached a couple of example screenshots.
Hi! I investigate this behaviour and found problem in this commit https://github.com/dutchiexl/BehatHtmlFormatterPlugin/commit/4b7ce3f9256c90195c209ac3e9e155b572c8385e in renderBeforeOutline we should return result
Hi, it seems like the issue is still there. Features/scenarios are indented below the previous feature/scenario, even though they should be on the same level in the Behat HTML. When the summary is displayed, some features are also "hidden inside" previous features and that feature has to be opened to see them. The twig report is also hidden in this structure.
Is there any workaround or trick to fix this?
Hi! Try this versifor https://github.com/jhenya/BehatHtmlFormatterPlugin
Thanks! It seems like the issue is related to using Scenario Outlines. Normal Scenarios get displayed ok, but for them the Scenario description isn't displayed, the steps are just listed as bullet points and the folding option is missing too.
work correct when create test in this way:
Scenario Outline: Name for test Given .... And .... When.... Then .... Examples: |header1|header2|header3| |data1 |data1 |data1 | |data2 |data2 |data2 |
Then you will get correct report and Scenario will have name from Example table data:
Scenario Outline: Checking that click on the tab change page to corresponding tab page Scenario: |data1 |data1 |data1 | Given ... And ... When ... Then ...