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

TestNG plugin should contribute to DashBoardView

      "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 ?

          [JENKINS-12275] TestNG plugin should contribute to DashBoardView

          kutzi added a comment -

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

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

          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

          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

          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.

          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.

          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.

          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.

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

              Created:
              Updated:
              Resolved: