Msbuild 加利奥·姆布尼特与球队城市问题
今天早上我问了一个关于加利奥和球队城市之间整合问题的问题。我更改了msbuild文件,以便在最新的Gallio构建脚本API中使用正确的语法。谢谢Jeff Brown,但现在,当我尝试在Team City上构建应用程序时,出现以下错误: 执行Gallio任务期间发生意外错误。[16:19:49]:[Project“CoderForTraders.msbuild.teamcity.patch.tcprojx”(重建解决方案;运行测试目标]:]C:\teamcity\buildAgent\work\fa1d38b0af329d65\CoderForTraders.msbuild(9,9):FilterParseException:应为冒号 这是第9行:Msbuild 加利奥·姆布尼特与球队城市问题,msbuild,teamcity,mbunit,gallio,Msbuild,Teamcity,Mbunit,Gallio,今天早上我问了一个关于加利奥和球队城市之间整合问题的问题。我更改了msbuild文件,以便在最新的Gallio构建脚本API中使用正确的语法。谢谢Jeff Brown,但现在,当我尝试在Team City上构建应用程序时,出现以下错误: 执行Gallio任务期间发生意外错误。[16:19:49]:[Project“CoderForTraders.msbuild.teamcity.patch.tcprojx”(重建解决方案;运行测试目标]:]C:\teamcity\buildAgent\work\
<Gallio IgnoreFailures="true" Filter="Type=SomeFixture" Files="@(TestFile)">
这是整个文件:
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- This is needed by MSBuild to locate the Gallio task -->
<UsingTask AssemblyFile="C:\Gallio\bin\Gallio.MSBuildTasks.dll" TaskName="Gallio" />
<!-- Specify the test files and assemblies -->
<ItemGroup>
<TestFile Include="C:\_CBL\CBL\CoderForTraders\Source\trunk\UnitTest\DomainModel.Tests\bin\Debug\CBL.CoderForTraders.DomainModel.Tests.dll" />
</ItemGroup>
<Target Name="RunTests">
<Gallio IgnoreFailures="true" Filter="Type=SomeFixture" Files="@(TestFile)">
<!-- This tells MSBuild to store the output value of the task's ExitCode property
into the project's ExitCode property -->
<Output TaskParameter="ExitCode" PropertyName="ExitCode"/>
</Gallio>
<Error Text="Tests execution failed" Condition="'$(ExitCode)' != 0" />
</Target>
<Target Name="RebuildSolution">
<Message Text="Starting to Build"/>
<MSBuild Projects="CoderForTraders.sln"
Properties="Configuration=Debug"
Targets="Rebuild" />
</Target>
</Project>
你对可能出现的问题有什么想法吗?我终于明白了
我刚刚删除了Filter属性,现在测试运行正常,一切正常是的,Filter属性指定的语法不正确。应使用冒号将键与其值分隔开。使用“Type:SomeFixture”是有效的。当然,除非您真的有一个名为SomeFixture的测试夹具,否则您可能不想使用该过滤器-p我使用了bambol中的命令,发现从/filter参数中删除任何空格都可以解决这个问题