Skip to content

Commit

Permalink
Add test for apk
Browse files Browse the repository at this point in the history
  • Loading branch information
dellis1972 committed Jan 19, 2023
1 parent cd90909 commit fc0147b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/MSBuildDeviceIntegration/Tests/InstallTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ public void ToggleFastDev ()
}

[Test]
public void ToggleDebugReleaseWithSigning ()
public void ToggleDebugReleaseWithSigning ([Values ("aab", "apk")] string packageFormat)
{
AssertCommercialBuild ();
AssertHasDevices ();
Expand All @@ -310,7 +310,7 @@ public void ToggleDebugReleaseWithSigning ()
proj.SetProperty (proj.ReleaseProperties, "AndroidSigningKeyStore", "test.keystore");
proj.SetProperty (proj.ReleaseProperties, "AndroidSigningKeyAlias", "mykey");
proj.SetAndroidSupportedAbis ("armeabi-v7a", "x86", "x86_64");
proj.SetProperty (proj.ReleaseProperties, "AndroidPackageFormat", "aab");
proj.SetProperty (proj.ReleaseProperties, "AndroidPackageFormat", packageFormat);
proj.SetProperty ("AndroidUseApkSigner", "true");
proj.OtherBuildItems.Add (new BuildItem (BuildActions.None, "test.keystore") {
BinaryContent = () => data
Expand All @@ -329,8 +329,8 @@ public void ToggleDebugReleaseWithSigning ()
//Now toggle to Release
proj.IsRelease = true;
Assert.IsTrue (builder.Install (proj), "Second install should have succeeded.");
proj.IsRelease = true;
Assert.IsTrue (builder.Install (proj), "Install should have succeeded.");
proj.IsRelease = false;
Assert.IsTrue (builder.Install (proj), "Third install should have succeeded.");
Assert.IsTrue (builder.Uninstall (proj), "unnstall should have succeeded.");
}
}
Expand Down

0 comments on commit fc0147b

Please sign in to comment.