TeamCity, NAnt, MSBuild and NUnit

I use NAnt 0.85 as build runner, but if test in one assembly failed, tests in other assemblies not runned.
<nunit2 haltonerror="false"> worked not correctly -  test failed, but build succeeded.

If I use MSBuild as build runner, all works fine, but I want use NAnt for additional operations.
If I use MSBuild from NAnt, I has error "The result "" of evaluating the value "$(teamcity_dotnet_nunitlauncher_msbuild_task)" of the "AssemblyFile" attribute in element <UsingTask> is not valid"
Can anybody help me?

Comment actions Permalink

I am running into the same problem as well. Does anybody know how we should go about? If I remove the following task from MSBuild script, I can get rid of this problem.

  <UsingTask TaskName="NUnitTeamCity" AssemblyFile="$(teamcity_dotnet_nunitlauncher_msbuild_task)"/>

But since we are using TeamCity NUnit, we can not remove this. Can anybody please share their thoughts?


Comment actions Permalink

To fix msbuild, please create the mentioned property in msbuild call from nant.
I have created an issue in our tracker for that problem at
Could you please watch/vote for it.

Comment actions Permalink

Could you please have a look to my next reply on msbuild issue.
For NAnt we have created property 'FailOnEndOnFailure' that can be used to make NUnit runner to run all assemblies inspite of failures.
Could you please try it.

If you can not modify NUnit2 task, please define 'teamcity.dotnet.nant.nunit2.failonfailureatend' property in NAnt script.



Please sign in to leave a comment.