protected ProjectBuilder CreateApkBuilder(string directory = null, bool cleanupAfterSuccessfulBuild = false, bool cleanupOnDispose = false) { if (string.IsNullOrEmpty(directory)) { directory = Path.Combine("temp", TestName); } TestOutputDirectories [TestContext.CurrentContext.Test.ID] = Path.Combine(Root, directory); return(BuildHelper.CreateApkBuilder(directory, cleanupAfterSuccessfulBuild, cleanupOnDispose)); }
protected ProjectBuilder CreateApkBuilder(string directory = null, bool cleanupAfterSuccessfulBuild = false, bool cleanupOnDispose = false, [CallerMemberName] string packageName = "") { if (string.IsNullOrEmpty(directory)) { directory = Path.Combine("temp", TestName); } TestOutputDirectories [TestContext.CurrentContext.Test.ID] = Path.Combine(Root, directory); TestPackageNames [packageName] = $"com.xamarin.{packageName}"; return(BuildHelper.CreateApkBuilder(directory, cleanupAfterSuccessfulBuild, cleanupOnDispose)); }
protected ProjectBuilder CreateApkBuilder(string directory, bool cleanupAfterSuccessfulBuild = false, bool cleanupOnDispose = false) { TestOutputDirectories [TestContext.CurrentContext.Test.ID] = Path.Combine(Root, directory); return(BuildHelper.CreateApkBuilder(directory, cleanupAfterSuccessfulBuild, cleanupOnDispose)); }
protected ProjectBuilder CreateApkBuilder(string directory, bool cleanupAfterSuccessfulBuild = false, bool cleanupOnDispose = true) { TestContext.CurrentContext.Test.Properties ["Output"] = new string [] { Path.Combine(Root, directory) }; return(BuildHelper.CreateApkBuilder(directory, cleanupAfterSuccessfulBuild, cleanupOnDispose)); }