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

Missing classname when used with reports generated from VSTest.Console.exe

    Details

    • Similar Issues:

      Description

      Visual Studio 2012 introduced VSTest.Console.exe to replace MSTest.exe.

      See here for more information:
      http://msdn.microsoft.com/en-us/library/vstudio/ms182486.aspx

      For the most part the trx output format is the same, except the class name is no longer in the full assembly reference format. It is now just the class name.

      MSTest.exe:
      className="Foo.AssemblyName.Namespace.TestClass, Foo.AssemblyName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0123abcd0123abcd"

      VSTest.Console.exe:
      className="Foo.AssemblyName.Namespace.TestClass"

      Attached is a modified xsl that addresses this difference. Please review and incorporate at your earliest convenience.

        Attachments

          Issue Links

            Activity

            Hide
            mrobinet mrobinet added a comment -

            mstest transform change

            Show
            mrobinet mrobinet added a comment - mstest transform change
            Hide
            glennv Glenn V added a comment -

            I would be happy if this got fixed, although the attached xsl is good enough to use as a workaround in combination with the "publish junit test result report" post build task.

            The "VsTestRunner plugin" does not publish unit test results properly either, so for now the only way to use vstest with jenkins is to script it yourself, it seems.

            Show
            glennv Glenn V added a comment - I would be happy if this got fixed, although the attached xsl is good enough to use as a workaround in combination with the "publish junit test result report" post build task. The "VsTestRunner plugin" does not publish unit test results properly either, so for now the only way to use vstest with jenkins is to script it yourself, it seems.
            Hide
            nilleb Ivo Bellin Salarin added a comment -

            VSTestRunner plugin supports since 2014/08/31 the publishing of TRX files.

            Could you please integrate this XSL and tell us how to pass environment variables (like the ones described in https://github.com/jenkinsci/vstestrunner-plugin/pull/2) to the "Publish MSTest results report" task?

            Show
            nilleb Ivo Bellin Salarin added a comment - VSTestRunner plugin supports since 2014/08/31 the publishing of TRX files. Could you please integrate this XSL and tell us how to pass environment variables (like the ones described in https://github.com/jenkinsci/vstestrunner-plugin/pull/2 ) to the "Publish MSTest results report" task?
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Ivo Bellin Salarin
            Path:
            pom.xml
            src/main/resources/hudson/plugins/mstest/mstest-to-junit.xsl
            src/test/java/hudson/plugins/mstest/MSTestReportConverterTest.java
            src/test/resources/hudson/plugins/mstest/mstest_vs_2012.trx
            src/test/resources/hudson/plugins/mstest/mstest_vs_2012.xml
            http://jenkins-ci.org/commit/mstest-plugin/0f2aa07d0fa905819d21997b2595eec54c5fdc88
            Log:
            Merge pull request #3 from iansul/master

            JENKINS-19360 - Fix for mstest problems with trx files genereated by vstest.console.exe

            Compare: https://github.com/jenkinsci/mstest-plugin/compare/e11a4dc2471a...0f2aa07d0fa9

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ivo Bellin Salarin Path: pom.xml src/main/resources/hudson/plugins/mstest/mstest-to-junit.xsl src/test/java/hudson/plugins/mstest/MSTestReportConverterTest.java src/test/resources/hudson/plugins/mstest/mstest_vs_2012.trx src/test/resources/hudson/plugins/mstest/mstest_vs_2012.xml http://jenkins-ci.org/commit/mstest-plugin/0f2aa07d0fa905819d21997b2595eec54c5fdc88 Log: Merge pull request #3 from iansul/master JENKINS-19360 - Fix for mstest problems with trx files genereated by vstest.console.exe Compare: https://github.com/jenkinsci/mstest-plugin/compare/e11a4dc2471a...0f2aa07d0fa9
            Hide
            smg s g added a comment -

            I'm facing same issue, but without any classname at all.

            Trx, generated by vstest: http://pastebin.com/bXKbZJZ5

            JUnitResult has empty <className></className>

            Show
            smg s g added a comment - I'm facing same issue, but without any classname at all. Trx, generated by vstest: http://pastebin.com/bXKbZJZ5 JUnitResult has empty <className></className>

              People

              • Assignee:
                nilleb Ivo Bellin Salarin
                Reporter:
                mrobinet mrobinet
              • Votes:
                8 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated: