Parallel Tasks for Exec report success but really failed

Jan 13, 2014 at 5:54 PM
Edited Jan 13, 2014 at 5:55 PM
Greetings,

I'm running my unit tests in parallel, here is a snippet
 <ItemGroup>
    <MyTargets Include="UnitTest-Database-1;UnitTest-Database-2;UnitTest-Database-3;UnitTest-Database-4;javascriptUnitTests">
      <LogFilePath>$(Artifacts)</LogFilePath>
    </MyTargets>
  </ItemGroup>

  
  <Target Name="BuildAll" DependsOnTargets="Compile">
    <MSBuild.ExtensionPack.Framework.Parallel
      MultiLog="True"
      TaskAction="BuildTargetsInParallel" 
      Targets="@(MyTargets)"/>
  </Target>

 <Target Name="UnitTest-Database-4">
    <Exec Command='C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe "$(CruiseControlPath)\UnitTest-Database-4.build" /t:UnitTest-Database-4 /v:d /l:FileLogger,Microsoft.Build.Engine;logfile=$(Artifacts)\UnitTest-Database-4.log' IgnoreExitCode="false" >
    </Exec>
    </Target>
I get random test failures but the targets themselves don't fail and the build is green. It's very intermittent.

I'm looking for some ideas on how to tackle this.

This is all windows, cruisecontrol.net.

Thank you
Coordinator
Jan 14, 2014 at 1:43 PM
Hi

What failure's exactly?

Mike
Coordinator
Jan 26, 2014 at 12:29 PM
assuming this is ok now, feel free to shout if its not.
Marked as answer by mikeFourie on 1/26/2014 at 5:29 AM