Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-75684

Use Class Name instead of File Name value in Lists & Diagrams

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • coverage-model
    • 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.

            drulli Ulli Hafner
            ravage Marc Würth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: