A Cake AddIn that extends Cake with the SmartBear ReadyAPI TestEngine command line tool.
First, add the extension in the usual way:
#addin "Cake.Tools.ReadyAPI.TestEngine"
#addin "Cake.Tools.ReadyAPI.TestEngine"
...
Task("FunctionalTest")
.Does
(
() =>
{
var result = RunProject
(
"demo-readyapi-project.xml",
new TestEngineSettings()
{
TimeoutSeconds = 120,
...
Environment = "dev"
}
);
if(result != 0)
{
throw new Exception("One or more tests failed!");
}
}
);
The extension expects TestEngine.ps1 to be available in the system path, but you may explicitly set the tool location as such
Setup(context => {
context.Tools.RegisterFile("C:/Users/yourusername/AppData/Roaming/npm/testengine.ps1");
});