小编Kar*_*und的帖子

NUnit完成后,MSBuild挂起

我正在尝试使用NUnit设置一个MSBuild作为单元测试驱动程序,但是在NUnit完成后脚本会一直挂起.它似乎没有完成它的工作,让MSBuild继续工作.
我正在使用.NET 4.0并使用NUnit 2.5.8.
如果我手动或使用gui(VS2010或NUnit)运行测试,它可以正常工作,但在MSBuild调用时则不行.

我很感激任何寻找错误的帮助,或者只是想知道在哪里寻找答案.

手动命令如下所示:
C:\ ....> nunit \nunit-console.exe buildbinaries\YYYY.XXXX.Extractor.Test.IntegrationTest.dll /xml=nunit.xml

和缩写的MSBuild:

  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />

  <!-- define folders for build output and reports -->
  <PropertyGroup>
    <BuildPath>buildbinaries\</BuildPath>
    <ReportPath>buildreports\</ReportPath>
    <ReleaseFolder>release_artefacts\</ReleaseFolder>
    <PublishFolder>c:\ZZZ Applications\published builds\</PublishFolder>
    <DeploymentFolder>\\seldclq99\ZZZ_Costanza_Dev$\</DeploymentFolder>
  </PropertyGroup>

  <PropertyGroup>
    <!-- specify assemblies that should be included in coverage report -->
    <NCoverAssemblyList>YYYY.XXXX.Extractor.Business.dll; YYYY.XXXX.Extractor.Common.dll YYYY.XXXX.Extractor.Configuration.dll YYYY.XXXX.Extractor.DAL.Access.dll YYYY.XXXX.Extractor.DAL.Facade.dll YYYY.XXXX.Extractor.Service.Contracts.dll YYYY.XXXX.Extractor.Service.dll YYYY.XXXX.Extractor.Service.Host.WebHost.dll YYYY.XXXX.Extractor.ServiceGateway.dll</NCoverAssemblyList>
  </PropertyGroup>

  <!-- define item group for deliverables -->
  <ItemGroup>
    <Binaries Include="$(BuildPath)/**/*.*" Exclude="$(BuildPath)nunit*" />
  </ItemGroup>

  <!--
  This is the default target that will be executed …
Run Code Online (Sandbox Code Playgroud)

msbuild nunit

5
推荐指数
1
解决办法
1438
查看次数

标签 统计

msbuild ×1

nunit ×1