Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option async parameter for test cloud tests #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion Cake.Xamarin/TestCloudRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,19 @@ public TestCloudSettings () : base ()
/// </summary>
/// <value>The keystore alias password.</value>
public string KeystoreAliasPassword { get; set; }

/// <summary>
/// Gets or sets whether this Tests process should be attached until completion
/// </summary>
/// <value><c>true</c> if process should remain attached; otherwise, <c>false</c>.</value>
public bool Async { get; set; }
}

internal class TestCloudRunner : Cake.Core.Tooling.Tool<TestCloudSettings>
{
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;
Expand Down Expand Up @@ -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);
}
}
Expand Down