diff --git a/Cake.Xamarin/TestCloudRunner.cs b/Cake.Xamarin/TestCloudRunner.cs
index fe4003d..a793d06 100644
--- a/Cake.Xamarin/TestCloudRunner.cs
+++ b/Cake.Xamarin/TestCloudRunner.cs
@@ -98,13 +98,19 @@ public TestCloudSettings () : base ()
///
/// The keystore alias password.
public string KeystoreAliasPassword { get; set; }
+
+ ///
+ /// Gets or sets whether this Tests process should be attached until completion
+ ///
+ /// true if process should remain attached; otherwise, false.
+ public bool Async { get; set; }
}
internal class TestCloudRunner : Cake.Core.Tooling.Tool
{
readonly ICakeEnvironment _cakeEnvironment;
- public TestCloudRunner (IFileSystem fileSystem, ICakeEnvironment cakeEnvironment, IProcessRunner processRunner, IToolLocator tools)
+ public TestCloudRunner (IFileSystem fileSystem, ICakeEnvironment cakeEnvironment, IProcessRunner processRunner, IToolLocator tools)
: base (fileSystem, cakeEnvironment, processRunner, tools)
{
_cakeEnvironment = cakeEnvironment;
@@ -180,6 +186,9 @@ public void Run (FilePath apkFile, string apiKey, string devicesHash, string use
if (settings.TestFixture)
builder.Append ("--test-fixture");
+ if (settings.Async)
+ builder.Append ("--async");
+
Run (settings, builder);
}
}