Increase automated test coverage

      Automated test coverage of the version column plugin is lower that is desired. Improve the automated test coverage by submitting pull requests with new automated tests.

      Review current coverage

      Review the current test coverage with the commands:

      Linux

      $ mvn -P enable-jacoco clean install jacoco:report
      $ xdg-open target/site/jacoco/index.html
      

      Windows

      C:\Users\Yourname > mvn -P enable-jacoco clean install jacoco:report
      C:\Users\Yourname > start target\site\jacoco\index.html
      

      Create a new test for a class that is not well covered

      Most integrated development environments have tools that will create a test stub that is a good beginning. Apache Netbeans has "Create / Update tests" . JetBrains IntelliJ has "Create tests". Visual Studio Code has the "Extension Pack for Java".

      Use the IDE or your own coding to create a test for one of the classes that is not well covered by tests.

          [JENKINS-70560] Improve version column plugin test coverage

          Shreya created issue -

          Shreya added a comment -

          markewaite 
          As you suggested, have created a Jira ticket for this issue. Wanted to know that should I make a separate PR for different methods that I cover, or should I work on a single WIP PR?

          I have labelled the PR as Work in Progress right now

          Shreya added a comment - markewaite   As you suggested, have created a Jira ticket for this issue. Wanted to know that should I make a separate PR for different methods that I cover, or should I work on a single WIP PR? I have labelled the PR as Work in Progress right now
          Vandit Singh made changes -
          Description Original: h2. Increase automated test coverage

          Automated test coverage of the embeddable build status plugin is lower that is desired. Improve the automated test coverage by submitting pull requests with new automated tests.
          h2. Review current coverage

          Review the [current test coverage|https://ci.jenkins.io/job/Plugins/job/embeddable-build-status-plugin/job/master/lastSuccessfulBuild/coverage/] with the commands:
          h3. Linux
          {noformat}
          $ mvn -P enable-jacoco clean install jacoco:report
          $ xdg-open target/site/jacoco/index.html
          {noformat}
          h3. Windows
          {noformat}
          C:\Users\Yourname > mvn -P enable-jacoco clean install jacoco:report
          C:\Users\Yourname > start target\site\jacoco\index.html
          {noformat}
          h2. Create a new test for a class that is not well covered

          Most integrated development environments have tools that will create a test stub that is a good beginning. Apache Netbeans has ["Create / Update tests"|https://netbeans.apache.org/kb/docs/java/junit-intro.html] . JetBrains IntelliJ has ["Create tests"|https://www.jetbrains.com/help/idea/create-tests.html]. Visual Studio Code has the ["Extension Pack for Java"|https://code.visualstudio.com/docs/java/java-testing].

          Use the IDE or your own coding to create a test for one of the classes that is not well covered by tests.

           
          New: h2. Increase automated test coverage

          Automated test coverage of the version column plugin is lower that is desired. Improve the automated test coverage by submitting pull requests with new automated tests.
          h2. Review current coverage

          Review the [current test coverage|https://ci.jenkins.io/job/Plugins/job/embeddable-build-status-plugin/job/master/lastSuccessfulBuild/coverage/] with the commands:
          h3. Linux
          {noformat}
          $ mvn -P enable-jacoco clean install jacoco:report
          $ xdg-open target/site/jacoco/index.html
          {noformat}
          h3. Windows
          {noformat}
          C:\Users\Yourname > mvn -P enable-jacoco clean install jacoco:report
          C:\Users\Yourname > start target\site\jacoco\index.html
          {noformat}
          h2. Create a new test for a class that is not well covered

          Most integrated development environments have tools that will create a test stub that is a good beginning. Apache Netbeans has ["Create / Update tests"|https://netbeans.apache.org/kb/docs/java/junit-intro.html] . JetBrains IntelliJ has ["Create tests"|https://www.jetbrains.com/help/idea/create-tests.html]. Visual Studio Code has the ["Extension Pack for Java"|https://code.visualstudio.com/docs/java/java-testing].

          Use the IDE or your own coding to create a test for one of the classes that is not well covered by tests.

           

          Mark Waite added a comment -

          yashre_bh a single Jira issue is enough to cover many pull requests.

          Mark Waite added a comment - yashre_bh a single Jira issue is enough to cover many pull requests.
          Mark Waite made changes -
          Remote Link New: This issue links to "PR 124 - test of JVMVersionMonitor (Web Link)" [ 28464 ]
          Mark Waite made changes -
          Remote Link New: This issue links to "PR 123 - Test of JVMVersionComparator (Web Link)" [ 28465 ]
          Mark Waite made changes -
          Assignee Original: Shreya [ yashre_bh ]
          Mark Waite made changes -
          Labels New: newbie-friendly
          Mark Waite made changes -
          Remote Link Original: This issue links to "PR 123 - Test of JVMVersionComparator (Web Link)" [ 28465 ]
          Sunkari made changes -
          Assignee New: Sunkari [ sunkarisomasekhar ]

            orerpa Orlando
            yashre_bh Shreya
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: