| Q |
A |
| PHPUnit version |
12.2.7 |
| PHP version |
8.4.7 |
| Installation Method |
Composer |
Summary
When i add the openclover to the coverage in the xml config i get a recursion error.
Current behavior
I get the following output fragment when trying to test with the xml containing the openclover config
In CodeCoverage.php line 173:
[Error]
Maximum call stack size of 8339456 bytes (zend.max_allowed_stack_size - zen
d.reserved_stack_size) reached. Infinite recursion?
Exception trace:
at /opt/atlassian/pipelines/agent/build/vendor/phpunit/phpunit/src/TextUI/Configuration/Xml/CodeCoverage/CodeCoverage.php:173
PHPUnit\TextUI\XmlConfiguration\CodeCoverage\CodeCoverage->hasOpenClover() at /opt/atlassian/pipelines/agent/build/vendor/phpunit/phpunit/src/TextUI/Configuration/Xml/CodeCoverage/CodeCoverage.php:181
PHPUnit\TextUI\XmlConfiguration\CodeCoverage\CodeCoverage->openClover() at /opt/atlassian/pipelines/agent/build/vendor/phpunit/phpunit/src/TextUI/Configuration/Xml/CodeCoverage/CodeCoverage.php:187
PHPUnit\TextUI\XmlConfiguration\CodeCoverage\CodeCoverage->openClover() at /opt/atlassian/pipelines/agent/build/vendor/phpunit/phpunit/src/TextUI/Configuration/Xml/CodeCoverage/CodeCoverage.php:187
PHPUnit\TextUI\XmlConfiguration\CodeCoverage\CodeCoverage->openClover() at /opt/atlassian/pipelines/agent/build/vendor/phpunit/phpunit/src/TextUI/Configuration/Xml/CodeCoverage/CodeCoverage.php:187
PHPUnit\TextUI\XmlConfiguration\CodeCoverage\CodeCoverage->openClover() at /opt/atlassian/pipelines/agent/build/vendor/phpunit/phpunit/src/TextUI/Configuration/Xml/CodeCoverage/CodeCoverage.php:187
PHPUnit\TextUI\XmlConfiguration\CodeCoverage\CodeCoverage->openClover() at /opt/atlassian/pipelines/agent/build/vendor/phpunit/phpunit/src/TextUI/Configuration/Xml/CodeCoverage/CodeCoverage.php:187
PHPUnit\TextUI\XmlConfiguration\CodeCoverage\CodeCoverage->openClover() at /opt/atlassian/pipelines/agent/build/vendor/phpunit/phpunit/src/TextUI/Configuration/Xml/CodeCoverage/CodeCoverage.php:187
PHPUnit\TextUI\XmlConfiguration\CodeCoverage\CodeCoverage->openClover() at /opt/atlassian/pipelines/agent/build/vendor/phpunit/phpunit/src/TextUI/Configuration/Xml/CodeCoverage/CodeCoverage.php:187
PHPUnit\TextUI\XmlConfiguration\CodeCoverage\CodeCoverage->openClover() at /opt/atlassian/pipelines/agent/build/vendor/phpunit/phpunit/src/TextUI/Configuration/Xml/CodeCoverage/CodeCoverage.php:187
How to reproduce
Insert into xml config
<coverage>
<report>
<openclover outputFile="test-reports/openclover-coverage.xml"/>
</report>
</coverage>
Expected behavior
The program creates the openclover xml file and does not crash.
Summary
When i add the openclover to the coverage in the xml config i get a recursion error.
Current behavior
I get the following output fragment when trying to test with the xml containing the openclover config
How to reproduce
Insert into xml config
Expected behavior
The program creates the openclover xml file and does not crash.