Cake Build addin for receiving test results from Devices.Xunit test hosts.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
tools
.gitignore
LICENSE.md
README.md
RELEASENOTES.md
build.cake
build.ps1
build.sh

README.md

Cake.DevicesXunitTestReceiver

Cake Build addin for receiving test results from Devices.Xunit test hosts.

Installation

Add the following reference to your cake build script:

#addin "Cake.DevicesXunitTestReceiver"

Usage

var allTestsPassed = LaunchEmbeddedTestsReceiver(port:7777);

await LaunchAndRunTestsOnDevice();

if (!await allTestsPassed)
{
    const string message = "Not all tests passed :(";
    Error(message);

    //We return a bad code so jenkins knows the tests/job failed
    throw new Exception(message);
}
Information("All tests passed :)");