Skip to content

Commit

Permalink
Fix iOS and Android test execution
Browse files Browse the repository at this point in the history
Cause all but desktop targets to reference dotnet execution assemble so that it gets packaged up with the mobile app, provided they include this line in their entrypoint method:

this.AddExecutionAssembly(typeof(SkippableFactDiscoverer).Assembly);
  • Loading branch information
AArnott committed Nov 24, 2015
1 parent 0df8c6a commit 68cedfa
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,15 @@
</Target>
<Target Name="MovePlatformExecutionAssemblies" AfterTargets="GetPackageFiles" DependsOnTargets="GetPackageFiles">
<ItemGroup>
<!-- MOVE desktop execution assembly to the build folder. -->
<PackageFile>
<TargetPath Condition=" '%(FileName)' == 'xunit.skippablefact.desktop' ">build\%(FileName)%(Extension)</TargetPath>
<TargetPath Condition=" '%(FileName)' == 'xunit.skippablefact.dotnet' ">build\%(FileName)%(Extension)</TargetPath>
</PackageFile>

<!-- COPY dotnet assembly to the build folder as well. -->
<PackageFile Include="@(PackageFile)"
Condition=" '%(FileName)' == 'xunit.skippablefact.dotnet' ">
<TargetPath>build\%(FileName)%(Extension)</TargetPath>
</PackageFile>
</ItemGroup>
</Target>
Expand Down

0 comments on commit 68cedfa

Please sign in to comment.