-
Improvement
-
Resolution: Fixed
-
Minor
-
None
-
Windows & Linux
We generate Clover reports with PHPUnit (.8.5).
This produces entries like this, for example:
<file name="/var/lib/jenkins/jobs/{PROJECT}/branches/jenkins-coverage/workspace/src/Model/Service/Policies/Wizard.php"> <class name="App\Model\Service\Policies\Wizard" namespace="App\Model\Service\Policies">
When the Jenkins Coverage plugin (2.6.0) generates the coveage reports, it uses the file names for lists and diagrams, which results in quite user unfriendly report UX:
Would it be possible to use the class names instead?
So, instead of "/var/lib/jenkins/jobs/{PROJECT}/branches/jenkins-coverage/workspace/src/Model/Service/Policies/Wizard.php" it would become "App\Model\Service\Policies\Wizard".
Alternatively, it would even improve the UX if we could automatically strip the common workspace path.
So, instead of "/var/lib/jenkins/jobs/{PROJECT}/branches/jenkins-coverage/workspace/src/Model/Service/Policies/Wizard.php" it would become just "/src/Model/Service/Policies/Wizard.php".
I'm aware that some aspects of this issue could be solved in PHPUnit, too. But I thought the Coverage plugin could be improved nonetheless.
- links to