Getting MSTest output to show in CruiseControl.Net

后端 未结 3 1907
心在旅途
心在旅途 2021-02-03 15:38

I currently have our build server set up with CruiseControl.Net running a build using MSBuild and then running unit tests using MSTest. The problem is I can\'t see the output of

相关标签:
3条回答
  • 2021-02-03 15:47

    i made the following changes to get MSTest results output to be shown in CruiseControl.NET

    1) For Dashboard - in dashboard.config added a reference to the Mstest 2008 xsl file under buildReportBuildPlugin

    <xslFile>xsl\MsTestReport2008.xsl</xslFile>
    

    2) For email - in ccservice.exe.config added the reference to the same xsl file under xslFiles section

    <file name="xsl\MsTestSummary2008.xsl"/>
    
    0 讨论(0)
  • 2021-02-03 15:55

    Did you configure your web dashboard with the correct xsl to format the outputs? There are two different versions of the XSL's (Summary and Report) for VSTS 2005 and 2008 as Microsoft changed the XML output drastically between the two versions. The changes were very good, just breaking changes.

    0 讨论(0)
  • 2021-02-03 16:00

    For the Dashboard, I think you need to add the MSTest Summary in the xlsFiles, but add the MSTest Report build report plugin. That is,

      <buildReportBuildPlugin>
        <xslFileNames>
          <xslFile>xsl\MsTestSummary2008.xsl</xslFile>
        </xslFileNames>
      </buildReportBuildPlugin>
      <xslReportBuildPlugin description="MSTest Report" actionName="MSTESTReport" xslFileName="xsl\MsTestReport2008.xsl" />
    </buildPlugins>
    

    I tried adding MSTestReport on both but it didn't work, but the setting above did. Hope that helps...

    0 讨论(0)
提交回复
热议问题