Skip to content

Commit fc0147b

Browse files
committed
Add test for apk
1 parent cd90909 commit fc0147b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/MSBuildDeviceIntegration/Tests/InstallTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ public void ToggleFastDev ()
291291
}
292292

293293
[Test]
294-
public void ToggleDebugReleaseWithSigning ()
294+
public void ToggleDebugReleaseWithSigning ([Values ("aab", "apk")] string packageFormat)
295295
{
296296
AssertCommercialBuild ();
297297
AssertHasDevices ();
@@ -310,7 +310,7 @@ public void ToggleDebugReleaseWithSigning ()
310310
proj.SetProperty (proj.ReleaseProperties, "AndroidSigningKeyStore", "test.keystore");
311311
proj.SetProperty (proj.ReleaseProperties, "AndroidSigningKeyAlias", "mykey");
312312
proj.SetAndroidSupportedAbis ("armeabi-v7a", "x86", "x86_64");
313-
proj.SetProperty (proj.ReleaseProperties, "AndroidPackageFormat", "aab");
313+
proj.SetProperty (proj.ReleaseProperties, "AndroidPackageFormat", packageFormat);
314314
proj.SetProperty ("AndroidUseApkSigner", "true");
315315
proj.OtherBuildItems.Add (new BuildItem (BuildActions.None, "test.keystore") {
316316
BinaryContent = () => data
@@ -329,8 +329,8 @@ public void ToggleDebugReleaseWithSigning ()
329329
//Now toggle to Release
330330
proj.IsRelease = true;
331331
Assert.IsTrue (builder.Install (proj), "Second install should have succeeded.");
332-
proj.IsRelease = true;
333-
Assert.IsTrue (builder.Install (proj), "Install should have succeeded.");
332+
proj.IsRelease = false;
333+
Assert.IsTrue (builder.Install (proj), "Third install should have succeeded.");
334334
Assert.IsTrue (builder.Uninstall (proj), "unnstall should have succeeded.");
335335
}
336336
}

0 commit comments

Comments
 (0)