2
Vote

Statlight activity error when drop location is UNC path

description

The StatLight activity in TfsBuildExtensions.Activities.CodeQuality produces an error after the statlight process has run and before the publish test results proces runs. Despite the error the statlight process appears to run ok and the publish test results process appears to run ok as well. It's just that the build result shows that an error occurred. The error appears related to the drop location being a UNC path. I wonder if its not better for the StatLight activity to use the TestResults folder rather than the drop folder for the output xml file. This is the log (you'll notice that I specified a bat file in the tool path instead of the exe directly to allow me to pass in an extra parameter -b to StatLight. The bat file has a single line: "C:\Program Files\StatLight\StatLight.exe" -b %1=%2 %3=%4): StatLightRunning C:\Program Files\StatLight\StatLight.bat -x="C:\Builds\1\OpralogLogbookViewer\OpralogLogbookViewerCI\Binaries\OpralogLogbookViewer.Tests.xap" -r="\vinfo1\TFSBuilds\OpralogLogbookViewerCI\OpralogLogbookViewerCI_20120410.10\OpralogLogbookViewer.Tests.Result.xml"C:\Windows>"C:\Program Files\StatLight\StatLight.exe" -b -x="C:\Builds\1\OpralogLogbookViewer\OpralogLogbookViewerCI\Binaries\OpralogLogbookViewer.Tests.xap" -r="\vinfo1\TFSBuilds\OpralogLogbookViewerCI\OpralogLogbookViewerCI_20120410.10\OpralogLogbookViewer.Tests.Result.xml" StatLight - Version 1.6.4375Copyright (C) 2009-2011 Jason JarrettAll Rights Reserved.Starting Test Run: 10/04/2012 13:19:11..................... Summary Total : 21Successful : 21Failed : 0Ignored : 0Completion End : 10/04/2012 13:19:18Duration : 00:00:06.8784817Wrote XML report to:\vinfo1\TFSBuilds\OpralogLogbookViewerCI\OpralogLogbookViewerCI_20120410.10\OpralogLogbookViewer.Tests.Result.xml******************************* '\vinfo1\TFSBuilds\OpralogLogbookViewerCI\OpralogLogbookViewerCI_20120410.10' CMD.EXE was started with the above path as the current directory. UNC paths are not supported. Defaulting to Windows directory.Running c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\..\IDE\MSTest.exe /publish:"http://localhost:8080/tfs/DefaultCollection" /publishresultsfile:"\\vinfo1\TFSBuilds\OpralogLogbookViewerCI\OpralogLogbookViewerCI_20120410.10\OpralogLogbookViewer.Tests.Result.trx" /publishbuild:"OpralogLogbookViewerCI_20120410.10" /teamproject:"OpralogLogbookViewer" /platform:"Any CPU" /flavor:"Release"Microsoft (R) Test Execution Command Line Tool Version 10.0.30319.1Copyright (c) Microsoft Corporation. All rights reserved. Waiting to publish...Publishing results of test run TFSBUILD@VINFOTFS 2012-04-10 13:19:18 to http://localhost:8080/tfs/DefaultCollection....Publish completed successfully.

comments

MOlausson wrote Apr 10, 2012 at 2:11 PM

Sounds like somthing we should fix. I'm adding to the backlog and will investigate.

MOlausson wrote Apr 10, 2012 at 2:11 PM

Sounds like somthing we should fix. I'm adding to the backlog and will investigate.

remco wrote Apr 10, 2012 at 2:38 PM

Thanks. I also noticed that StatLight itself is now capable of outputting a .trx file directly. So you may not need to convert the .xml to .trx in the TFS Build Extensions StatLight activity anymore.

mikeFourie wrote Dec 9, 2012 at 12:52 PM

I wonder if support for -b can be added while looking into this ... :-)