CruiseControl.Net Web Dashboard Does Not Display Results

You are having trouble displaying the results in the CruiseControl.net web dashboard.

I created a configuration file that starts building the project. Then it starts nunit according to my tests, they run and end just fine (I can open the log and see the results there). ccnet indicate that the log files have been merged successfully. However, try as I could, I can’t get it to appear on the web panel. This is just frustrating:

 BUILD FAILED Project: GroundControlTests Date of build: 2011-01-07 17:16:36 Running time: 00:00:58 Integration Request: mmayo triggered a build (ForceBuild) from PC0098 Projects built with no warnings at all :-) Modifications since last build (0) 

despite the failure.

I suspect it has something to do with xsl transforms, but tried almost everything I can think of.

Of course, if I click "Open Assembly", it will show, but omissions and failures are not displayed in the main report :(

My configuration files are below, any suggestions are appreciated!

--- --- nant.build

 <project name="GroundControl" default="cleanNunit" basedir="."> <description>Cleanup tasks</description> <target name="cleanNunit" description="removes nunit log file"> <delete file="${CCNetArtifactDirectory}\nunit-results.xml" failonerror="true" /> </target> </project> 

----- ccnet.config -------

 <cruisecontrol xmlns:cb="urn:ccnet.config.builder"> <project name="GroundControlTests"> <workingDirectory>C:\Source\Wholesale\Code.EventControl.TestingFramework\GroundControlReboot</workingDirectory> <artifactDirectory>C:\Source\Wholesale\Code.EventControl.TestingFramework\GroundControlReboot</artifactDirectory> <prebuild> <nant> <executable>C:\Nant\bin\nant.exe </executable> <baseDirectory>C:\Source\Wholesale\Code.EventControl.TestingFramework\GroundControlReboot</baseDirectory> <nologo>false</nologo> <buildFile>nant.build</buildFile> <targetList> <target>cleanNunit</target> </targetList> </nant> </prebuild> <tasks> <msbuild> <executable>C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe </executable> <workingDirectory>C:\Source\Wholesale\Code.EventControl.TestingFramework\GroundControlReboot </workingDirectory> <projectFile>GroundControlReboot.sln</projectFile > <buildArgs>/noconsolelogger /v:quiet /noconlog /p:Configuration=Debug /p:ReferencePath="C:\Program Files\NUnit 2.5.9\bin;C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0" /p:AdditionalReferencePath="C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0" </buildArgs> <targets>ReBuild</targets > <timeout>180</timeout > <!-- <logger>C:\Program Files\CruiseControl.NET\server\Rodemeyer.MsBuildToCCNet.dll</logger>--> </msbuild> <exec> <executable>C:\Program Files\NUnit 2.5.9\bin\net-2.0\nunit-console.exe </executable > <buildArgs>/xml:C:\Source\Wholesale\Code.EventControl.TestingFramework\GroundControlReboot\nunit-results.xml C:\Source\Wholesale\Code.EventControl.TestingFramework\GroundControlReboot\GroundControlReboot\bin\Debug\GroundControlReboot.dll </buildArgs> <buildTimeoutSeconds>180</buildTimeoutSeconds> </exec> </tasks> <publishers> <merge> <files> <file> C:\Source\Wholesale\Code.EventControl.TestingFramework\GroundControlReboot\*-results.xml </file> </files> </merge> <xmllogger /> <statistics /> <artifactcleanup cleanUpMethod="KeepLastXBuilds" cleanUpValue="20" /> </publishers> </project> </cruisecontrol> 

----- dashboard.config -------

 <?xml version="1.0" encoding="utf-8"?> <dashboard> <remoteServices> <servers> <server name="local" url="tcp://localhost:21234/CruiseManager.rem" allowForceBuild="true" allowStartStopBuild="true" backwardsCompatible="false" /> </servers> </remoteServices> <plugins> <farmPlugins> <farmReportFarmPlugin /> <cctrayDownloadPlugin /> <administrationPlugin password="" /> </farmPlugins> <serverPlugins> <serverReportServerPlugin /> </serverPlugins> <projectPlugins> <projectReportProjectPlugin /> <viewProjectStatusPlugin /> <latestBuildReportProjectPlugin /> <viewAllBuildsProjectPlugin /> </projectPlugins> <buildPlugins> <buildReportBuildPlugin> <xslFileNames> <xslFile>xsl\header.xsl</xslFile> <xslFile>xsl\msbuild2ccnet.xsl</xslFile> <xslFile>xsl\modifications.xsl</xslFile> <xslFile>xsl\nant.xsl</xslFile> <xslFile>xsl\tests.xsl</xslFile> </xslFileNames> </buildReportBuildPlugin> <buildLogBuildPlugin /> </buildPlugins> <securityPlugins> <simpleSecurity /> </securityPlugins> </plugins> </dashboard> 
+4
source share
1 answer

When I deployed the nunit package from the admin control panel, it created three things:

Xsl \ unittests.xsl added to buildReportBuildPlugin. This is for the assembly summary page. He also generated two elements for the sidebar to see nunit details (xsl \ tests.xsl) and nunit timings (xsl \ timings.xsl). It looks like you have the xsl file for nunit defined for the assembly summary page, so you can't see anything. If instead you use xsl \ unittests.xsl (and reload the dashboard so that it actually reads the updated file), which might work. Another option is to simply deploy the nunit package from the control panel admin web page, which will update the dashboard.config file for you.

 <buildPlugins> <buildReportBuildPlugin> <xslFileNames> <xslFile>xsl\header.xsl</xslFile> <xslFile>xsl\modifications.xsl</xslFile> <xslFile>xsl\unittests.xsl</xslFile> </xslFileNames> </buildReportBuildPlugin> <buildLogBuildPlugin /> <xslReportBuildPlugin description="NAnt Output" actionName="NAntOutputBuildReport" xslFileName="xsl\NAnt.xsl"></xslReportBuildPlugin> <xslReportBuildPlugin description="NAnt Timings" actionName="NAntTimingsBuildReport" xslFileName="xsl\NAntTiming.xsl"></xslReportBuildPlugin> <xslReportBuildPlugin description="NUnit Details" actionName="NUnitDetailsBuildReport" xslFileName="xsl\tests.xsl"></xslReportBuildPlugin> <xslReportBuildPlugin description="NUnit Timings" actionName="NUnitTimingsBuildReport" xslFileName="xsl\timing.xsl"></xslReportBuildPlugin> </buildPlugins> 
+9
source

Source: https://habr.com/ru/post/1334689/


All Articles