Skip to content

Commit

Permalink
Adding test build target
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiocav committed May 24, 2016
1 parent 58fe516 commit 526a13c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions WebJobs.Script.proj
Original file line number Diff line number Diff line change
Expand Up @@ -132,17 +132,20 @@

<UsingTask TaskName="Xunit.Runner.MSBuild.xunit" AssemblyFile="packages\xunit.MSBuild.2.0.0.0\tools\xunit.runner.msbuild.dll"/>

<Target Name="UnitTest" DependsOnTargets="CheckSkipStrongNames;Build">
<Target Name="TestBuild" DependsOnTargets="CheckSkipStrongNames;Build">
<ItemGroup>
<UnitTestProjects Include="test\WebJobs.Script.Tests\WebJobs.Script.Tests.csproj"/>
</ItemGroup>

<MSBuild Projects="@(UnitTestProjects)"

Properties="$(SetConfiguration); $(SetPlatform)"
BuildInParallel="$(BuildInParallel)">
<Output TaskParameter="TargetOutputs" ItemName="UnitTestAssemblies"/>
</MSBuild>

</Target>

<Target Name="UnitTest" DependsOnTargets="TestBuild">
<xunit Assemblies="@(UnitTestAssemblies)" ExcludeTraits="$(ExcludedTestTraits)" />
</Target>

Expand Down

0 comments on commit 526a13c

Please sign in to comment.