How to *not* use NUnitTeamCity Task replacement?

Is it possible to turn off the NUnit/NUnitTeamCity tasks replacement in TeamCity? We have a NUnit task in MSBuild that specify the OutputXmlFile and after the tests are run, a check that peek into the result file to check the result. But since TeamCity uses its own NUnit task instead and ignore that attribute, the build file because the result file is not saved to the location we want.

Turn off that test result off check is an option but I want to see if it is possible to turn of TeamCity task replacement first.

3 comments

Hello,

For now it is impossible to disable tasks replacement at all.
The only way is to explicitly start new instance of msbuild.exe for running
tests.
Please note, that TeamCity adds msbuild log listenter, thus starting msbuild.exe
will
interact the way msbuild log is shown on the server.

It is possible to support that attribute for TeamCity provided task.

Please submit this as issue to out tracker at http://www.jetbrains.net/tracker
--
Eugene Petrenko
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Is it possible to turn off the NUnit/NUnitTeamCity tasks replacement
in TeamCity? We have a NUnit task in MSBuild that specify the
OutputXmlFile and after the tests are run, a check that peek into the
result file to check the result. But since TeamCity uses its own NUnit
task instead and ignore that attribute, the build file because the
result file is not saved to the location we want.

Turn off that test result off check is an option but I want to see if
it is possible to turn of TeamCity task replacement first.



0

I have created the issue for the problem. Could you please watch/vote for it. I think it is possible to create patch solwing the issue.
Please watch/vote for it at http://jetbrains.net/tracker/issue/TW-4905

0

it's possible... in your msbuild file just do this:

]]>
<CreateItem Include="$(MSBuildProjectDirectory)\*\Bin\Debug\.Tests.dll" >
]]>

I really like TeamCity so far, but i just wasted a lot of time because of this, and we really need the Nunit xml output...

0

Please sign in to leave a comment.