dutchiexl / BehatHtmlFormatterPlugin

This is a behat plugin to generate HTML reports
MIT License
112 stars 117 forks source link

#scenario-overview will not render on my html page. #117

Closed nodeJerry closed 4 years ago

nodeJerry commented 4 years ago

Hi Can anyone tell me why #scenario-overview will not display on my report. Please I can see feature_overview (this is displayed)

I am using configuration

    extensions:
       emuse\BehatHTMLFormatter\BehatHTMLFormatterExtension:
          name: html
          renderer: Twig,Behat2
          file_name: index
          print_args: true
          print_outp: true
          loop_break: true
nodeJerry commented 4 years ago

image

nodeJerry commented 4 years ago

Tis layout is a lot different to the one in the documentation.

nodeJerry commented 4 years ago

image

nodeJerry commented 4 years ago

here is my behat command image

nodeJerry commented 4 years ago

Please help.

Note this is behind a firewall

PurHur commented 4 years ago

The layout you are looking on is the old Behat2 Renderer (It was a default feature back then. This package did implement it for newer behat versions). Remove Behat2 from this line: renderer: Twig,Behat2 and it should output the newer format.

ijerry commented 4 years ago

Brilliant PurHur - This did the trick. Thanks again. Why not default it with "Twig" ? Rather than both ? Thanks Again.

PurHur commented 4 years ago

This extension missed some love the last years. The behat2 renderer was only a compatibly layer for the days like 5 years ago. Im pretty sure this can now be removed since i merged some PRs to use custom templates. So if someone really wants that old (not very good looking) layout it could be done via twig not via a php renderer.

Note that i did not merge that custom template feature yet. You can find i in my fork branch master.

ijerry commented 4 years ago

Cool - Thanks again !!!!!!