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

Fix for data-driven tests with mstest (JENKINS-4075)

    Details

    • Similar Issues:

      Description

      The attached patch improves the report generated from mstest when using data-driven tests. It causes each data row to be reported as a separate test, and appends "row

      {n}

      " to the test method name for easier identification.

      I have only tested this on a single test in a single build job, so there might have some issues, but it solved my scratch.

        Attachments

          Activity

          Hide
          gbois Gregory Boissinot added a comment - - edited

          Could you also submit the patch for the xUnit plugin (with its dtkit transformation set of stylesheet).
          Or the best solution is to refactor MSTest and make a dependency to xUnit core (Have a look at Gallio plugin or JSUnit plugin as example).

          Show
          gbois Gregory Boissinot added a comment - - edited Could you also submit the patch for the xUnit plugin (with its dtkit transformation set of stylesheet). Or the best solution is to refactor MSTest and make a dependency to xUnit core (Have a look at Gallio plugin or JSUnit plugin as example).
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: nilleb
          Path:
          src/main/resources/hudson/plugins/mstest/mstest-to-junit.xsl
          http://jenkins-ci.org/commit/mstest-plugin/22100eccd7ced124469de6aac32edc29966e3bb9
          Log:
          [FIXED JENKINS-8193] [FIXED JENKINS-4075] parse data driven tests, according to the patch provided by toreolsensan

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: nilleb Path: src/main/resources/hudson/plugins/mstest/mstest-to-junit.xsl http://jenkins-ci.org/commit/mstest-plugin/22100eccd7ced124469de6aac32edc29966e3bb9 Log: [FIXED JENKINS-8193] [FIXED JENKINS-4075] parse data driven tests, according to the patch provided by toreolsensan
          Hide
          nilleb Ivo Bellin Salarin added a comment -

          DISCLAIMER: the content of this patch has been integrated in the mstest-to-junit.xsl.

          But the proposed patch addresses only the trx-2006 format. So if somebody can provide me with a trx-2010 datadriven test result, I will do the rest of the job.

          It would also be nice to have a sample .trx (for both trx-2006 and trx-2010), in order to setup a unit test.

          Show
          nilleb Ivo Bellin Salarin added a comment - DISCLAIMER: the content of this patch has been integrated in the mstest-to-junit.xsl. But the proposed patch addresses only the trx-2006 format. So if somebody can provide me with a trx-2010 datadriven test result, I will do the rest of the job. It would also be nice to have a sample .trx (for both trx-2006 and trx-2010), in order to setup a unit test.

            People

            • Assignee:
              nilleb Ivo Bellin Salarin
              Reporter:
              toreolsensan toreolsensan
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: