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

Request to make MSTest Plugin compatible with the new workflow

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: mstest-plugin
    • Labels:
    • Environment:
      open-source Jenkins 1.647 as well as the Cloubees jenkins.
    • Similar Issues:

      Description

      The Pipeline's script generator doesn't show the MSTest plugin as one of the compatible plug-in as of now. As a workaround, i am using the below batch command to get the publish working from the workflow.

      [stage name: 'Publish test result', concurrency: 1
      bat 'C:\\bin
      msxsl.exe TestResult.trx "C:\\Jenkins\\plugins\\mstest\\WEB-INF
      mstest-to-junit_withOutput.xsl" -o JUnitLikeResultsOutputFile1.xml'
      step([$class: 'JUnitResultArchiver', allowEmptyResults: true, testResults: 'JUnitLikeResultsOutputFile1.xml'])]

      But this involves, using the "msxsl.exe" and a .xls file for the transformation of the .trx file to .xls.

        Attachments

          Issue Links

            Activity

            okram999 Niristotle Okram created issue -
            okram999 Niristotle Okram made changes -
            Field Original Value New Value
            Epic Link JENKINS-31152 [ 165808 ]
            okram999 Niristotle Okram made changes -
            Description I have started to use the new Pipeline plug-in for Jenkins. But the script generator doesn't show the MSTest plugin as one of the compatible plug-in as of now. As a workaround, i am using the below batch command to get the publish working from the workflow.

            [stage name: 'Publish test result', concurrency: 1
             bat 'C:\\bin\\msxsl.exe TestResult.trx "C:\\Jenkins\\plugins\\mstest\\WEB-INF\\mstest-to-junit_withOutput.xsl" -o JUnitLikeResultsOutputFile1.xml'
             step([$class: 'JUnitResultArchiver', allowEmptyResults: true, testResults: 'JUnitLikeResultsOutputFile1.xml'])]

            But this involves, using the "msxsl.exe" and a .xls file for the transformation of the .trx file to .xls.
            But the Pipeline's script generator doesn't show the MSTest plugin as one of the compatible plug-in as of now. As a workaround, i am using the below batch command to get the publish working from the workflow.

            [stage name: 'Publish test result', concurrency: 1
             bat 'C:\\bin\\msxsl.exe TestResult.trx "C:\\Jenkins\\plugins\\mstest\\WEB-INF\\mstest-to-junit_withOutput.xsl" -o JUnitLikeResultsOutputFile1.xml'
             step([$class: 'JUnitResultArchiver', allowEmptyResults: true, testResults: 'JUnitLikeResultsOutputFile1.xml'])]

            But this involves, using the "msxsl.exe" and a .xls file for the transformation of the .trx file to .xls.
            okram999 Niristotle Okram made changes -
            Description But the Pipeline's script generator doesn't show the MSTest plugin as one of the compatible plug-in as of now. As a workaround, i am using the below batch command to get the publish working from the workflow.

            [stage name: 'Publish test result', concurrency: 1
             bat 'C:\\bin\\msxsl.exe TestResult.trx "C:\\Jenkins\\plugins\\mstest\\WEB-INF\\mstest-to-junit_withOutput.xsl" -o JUnitLikeResultsOutputFile1.xml'
             step([$class: 'JUnitResultArchiver', allowEmptyResults: true, testResults: 'JUnitLikeResultsOutputFile1.xml'])]

            But this involves, using the "msxsl.exe" and a .xls file for the transformation of the .trx file to .xls.
            The Pipeline's script generator doesn't show the MSTest plugin as one of the compatible plug-in as of now. As a workaround, i am using the below batch command to get the publish working from the workflow.

            [stage name: 'Publish test result', concurrency: 1
             bat 'C:\\bin\\msxsl.exe TestResult.trx "C:\\Jenkins\\plugins\\mstest\\WEB-INF\\mstest-to-junit_withOutput.xsl" -o JUnitLikeResultsOutputFile1.xml'
             step([$class: 'JUnitResultArchiver', allowEmptyResults: true, testResults: 'JUnitLikeResultsOutputFile1.xml'])]

            But this involves, using the "msxsl.exe" and a .xls file for the transformation of the .trx file to .xls.
            orrc Christopher Orr made changes -
            Labels mstest pipeline
            orrc Christopher Orr made changes -
            Epic Link JENKINS-31152 [ 165808 ]
            jglick Jesse Glick made changes -
            Labels pipeline workflow
            hrmpw Patrick Wolf made changes -
            Epic Link JENKINS-34657 [ 170293 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 168654 ] JNJira + In-Review [ 183217 ]
            abayer Andrew Bayer made changes -
            Labels workflow pipeline workflow
            abayer Andrew Bayer made changes -
            Labels pipeline workflow pipeline
            cchapman Clint Chapman made changes -
            Link This issue is duplicated by JENKINS-37159 [ JENKINS-37159 ]
            stautz85 Sebastian made changes -
            Attachment JenkinsPipeline_xUnitMStest.png [ 39247 ]
            stautz85 Sebastian made changes -
            Attachment image-2017-08-11-14-20-54-560.png [ 39248 ]
            stautz85 Sebastian made changes -
            Attachment image-2017-08-11-14-20-54-560.png [ 39248 ]
            nilleb Ivo Bellin Salarin made changes -
            Comment [ Perfect, I know what you mean. If you have a TRX to share, even privately, that will help me solving your problem faster. And I will also update the PR for xUnit. ]
            nilleb Ivo Bellin Salarin made changes -
            Link This issue is blocked by JENKINS-37159 [ JENKINS-37159 ]
            nilleb Ivo Bellin Salarin made changes -
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Resolved [ 5 ]

              People

              Assignee:
              nilleb Ivo Bellin Salarin
              Reporter:
              okram999 Niristotle Okram
              Votes:
              13 Vote for this issue
              Watchers:
              17 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: