TFS2010: Publish nUnit Results

I created custom build tasks in my project file to run nUnit tests, convert them to the MSTest result format using XSLT, and call mstest / publish with all the relevant parameters. The build seems to be successful, but I don't get any test results in the build report.

PublishNUnitReportToTfs: "C: \ Program Files (x86) \ MSBuild .. \ Microsoft Visual Studio 10.0 \ Common7 \ IDE \ mstest.exe" / publish: "http: // TFSBuildServer: 8080 / tfs / Acme Development" / publishbuild: " ci2.myApp.acme.com_20110526.15 "/ publishresultsfile:" D: \ Builds \ 2 \ myApp \ ci2.myApp.acme.com \ Sources \ myApp.Core.nUnit.Tests .. \ nUnitResultsAsMsTestResults.xml "/ TeamProject: "MYAPP" / platform: "AnyCPU" / flavor: "Debug"
Microsoft (R) Line Tool Version 10.0.30319.1 Run Command
Copyright (c) Microsoft Corporation. All rights reserved. Waiting for publication ... File 'D: \ Builds \ 2 \ MyApp \ ci2.myApp.acme.com \ Sources \ nUnitResultsAsMsTestResults.xml' was created in an earlier version of Visual Studio. This file will be converted, only in memory, to the current format. Results of the publication of a test run tfssvc @TFSBuildServer 2011-05-26 15:47:54 http: // TFSBuildServer: 8080 / tfs / Acme Development .............. Publish successfully completed.

Did I miss something?

+3
source share
3 answers

I found him!

" " , "Any CPU" "AnyCPU". TFS , . mstest "Any CPU" build ($) (Platform) .

, - .

+3

, . .

, nunit , ?

+3

, , MsTest , . TFS 2010 , X Y Z, . , , . , , , , .

A few days ago you asked about user configurations ("Dev" and "Test") instead of "Debug" and "Release", but I saw in this command you specified / flavor: "Debug", so I think this might be the culprit here.

+1
source

All Articles