Skip to content

Commit 85100e9

Browse files
committed
Add Unit Test for testOnly apps
1 parent d4c2a5e commit 85100e9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/MSBuildDeviceIntegration/Tests/InstallAndRunTests.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,12 +707,14 @@ public void RunWithLLVMEnabled ()
707707
}
708708

709709
[Test]
710-
public void SingleProject_ApplicationId ()
710+
public void SingleProject_ApplicationId ([Values (false, true)] bool testOnly)
711711
{
712712
AssertHasDevices ();
713713

714714
proj = new XamarinAndroidApplicationProject ();
715715
proj.SetProperty ("ApplicationId", "com.i.should.get.overridden.by.the.manifest");
716+
if (testOnly)
717+
proj.AndroidManifest = proj.AndroidManifest.Replace ("<application", "<application android:testOnly=\"true\"");
716718

717719
var abis = new string [] { "armeabi-v7a", "arm64-v8a", "x86", "x86_64" };
718720
proj.SetAndroidSupportedAbis (abis);

0 commit comments

Comments
 (0)