Replies: 2 comments 1 reply
-
Regarding branch coverage: Branch coverage is only available if the coverage file contains element of Regarding namespace levels: |
Beta Was this translation helpful? Give feedback.
-
I applied the change in 3e83d9c. |
Beta Was this translation helpful? Give feedback.
-
Title says it all 😄
Both the HTML report from ReportGenerator and the "bitbucket report" from
LoremFooBar/reportgenerator-coverage-bitbucket-pipe
specify a branch coverage of 0%. I don't know what value to expect, but I'm pretty sure it shouldn't be a 0.According to PHPUnit this metric should be generated: https://phpunit.readthedocs.io/en/9.5/code-coverage-analysis.html#:~:text=line%20was%20executed.-,Branch%20Coverage,-The%20Branch%20Coverage however, I don't know enough about clover to tell where it should be and if it's missing or in the wrong place.
Given all these uncertainties, I decided to start a discussion instead of report a bug.
On a different point, namespace level 1/2 grouping doesn't seem to work well: if I'm not mistaken, the namespace should correspond to a PHP namespace, instead it seems that the namespace is just the class.
For example:
src/Traits/MakesHttpResponsesTrait.php
src/Traits/MakesHttpResponsesTrait.php
App\Traits
(and what I was expecting)It feels to me that the class element should look like
<class name="MakesHttpResponsesTrait" namespace="App\Traits">
, shouldn't it? If so, I can do some research on PHPUnit's side and start asking question. 😆Beta Was this translation helpful? Give feedback.
All reactions