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

TestNG plugin should contribute to DashBoardView

    Details

    • Similar Issues:

      Description

      "Test" portlets of the dashboard view seems to use 'only junit' results to populate statistics.

      (@See screenshot, some jobs have "0 count" because those tests are "testng" tests)

      I guess I could workaround this by using a JUNITXMLReporter for the testng task.
      But I would like to avoid to edit jobs, ant-tasks and other tools that rely on this.

      Would it be possible that testng/dashboardview comuunicate with each other to count testng results properly ?

        Attachments

          Issue Links

            Activity

            Hide
            kutzi kutzi added a comment -

            This would probably be a non-issue if JENKINS-10100 would be implemented

            Show
            kutzi kutzi added a comment - This would probably be a non-issue if JENKINS-10100 would be implemented
            Hide
            nullin Nalin Makar added a comment -

            I have made changes to have TestNG's build action extend from AbstractTestResultAction, but looks like for replacing Dashboard View plugin also expects TestNG plugin to contribute a hudson.tasks.test.TestResultProjectAction. Instead, TestNG plugin contributes it's own TestNGProjectAction. It looks like either:

            1. I'll have to jump through hoops again to have TestNGProjectAction extend from TestResultProjectAction or completely replace it, or,
            2. Have Dashboard View plugin updated to also look for TestNGProjectAction

            Show
            nullin Nalin Makar added a comment - I have made changes to have TestNG's build action extend from AbstractTestResultAction, but looks like for replacing Dashboard View plugin also expects TestNG plugin to contribute a hudson.tasks.test.TestResultProjectAction. Instead, TestNG plugin contributes it's own TestNGProjectAction. It looks like either: 1. I'll have to jump through hoops again to have TestNGProjectAction extend from TestResultProjectAction or completely replace it, or, 2. Have Dashboard View plugin updated to also look for TestNGProjectAction
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Nalin Makar
            Path:
            README
            src/main/java/hudson/plugins/testng/TestNGProjectAction.java
            http://jenkins-ci.org/commit/testng-plugin-plugin/ca1c5e3261f929058ade071d06647e3f4ab3c181
            Log:
            Added: JENKINS-12275 - TestNG plugin should contribute to Dashboard View plugin

            Updated TestNG's project action to extend the more generic TestResultProjectAction that DashboardView plugin looks for

            NOTE: this still doesnt fix the Test Trend Chart. Submitted pull request https://github.com/jenkinsci/dashboard-view-plugin/pull/17 to fix that issue.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Nalin Makar Path: README src/main/java/hudson/plugins/testng/TestNGProjectAction.java http://jenkins-ci.org/commit/testng-plugin-plugin/ca1c5e3261f929058ade071d06647e3f4ab3c181 Log: Added: JENKINS-12275 - TestNG plugin should contribute to Dashboard View plugin Updated TestNG's project action to extend the more generic TestResultProjectAction that DashboardView plugin looks for NOTE: this still doesnt fix the Test Trend Chart. Submitted pull request https://github.com/jenkinsci/dashboard-view-plugin/pull/17 to fix that issue.
            Hide
            nullin Nalin Makar added a comment -

            Fixed the issue. See comments in commit message. TestNG's side of the fix will be available when v1.3 is release.

            Show
            nullin Nalin Makar added a comment - Fixed the issue. See comments in commit message. TestNG's side of the fix will be available when v1.3 is release.

              People

              • Assignee:
                nullin Nalin Makar
                Reporter:
                ebann ebann
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: