Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save marcel-valdez/3008206 to your computer and use it in GitHub Desktop.
Save marcel-valdez/3008206 to your computer and use it in GitHub Desktop.
Example Target to test a web application, considering the project contains a definition for a Deploy task
<Target Name="Test" DependsOnTargets="Build">
<!-- First we deploy the application -->
<MSBuild Targets="Deploy" Projects="WebCalc\WebCalc.csproj" ContinueOnError="false" />
<!-- Now we test the web application -->
<Exec Command="WebCalc.FunctionalTest\Deliverables\Assemblies\WebCalc.FunctionalTest.exe /site:http://localhost/WebCalc_deploy /xml=FunctionalTestReport.xml"/>
</Target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment