Translate html/xml report into twig templates #6325
Replies: 1 comment
-
We actually use template engine, it is very basic template engine used by PHPUnit - https://github.com/sebastianbergmann/php-text-template.
In Codeception 5 reporters will work in a very similar manner to extensions, it is possible to use custom extensions for generating reports in older versions of Codeception too. Links to relevant resources:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
what
In case you want to customize the html report template, it would be a good approach to use symfony/twig as template engine. the current template for the html report is a mess and should be refactored anyways.
how
Maybe it's a good idea to have something like a general extension which is by default enabled (like the failed extension), generates the reports from the hooks and have different possibilities of outputs (json/xml/html/...)
requirements:
Beta Was this translation helpful? Give feedback.
All reactions