Skip to content

Commit f7d693e

Browse files
Vasil ChimevVasil Chimev
Vasil Chimev
authored and
Vasil Chimev
committed
1 parent 2844fa9 commit f7d693e

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

tests/emulate_linux.py

+21-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,27 @@ def test_201_Emulate_Android_AvdName(self):
9595
assert ("running" in output)
9696

9797
#TODO: Get device id and verify files are deployed and process is running on this device
98-
98+
99+
def test_210_Emulate_MissingPlatform(self):
100+
CreateProject(projName="TNS_App")
101+
output = runAUT(tnsPath + " emulate android --path TNS_App", set_timeout=660)
102+
assert ("Copying template files..." in output)
103+
assert ("Updated project.properties" in output)
104+
assert ("Updated local.properties" in output)
105+
assert ("Project successfully created." in output)
106+
107+
assert ("Project successfully prepared" in output)
108+
assert ("Project successfully built" in output)
109+
110+
# Emulator can not be started without active UI
111+
if ('ACTIVE_UI' in os.environ) and ("YES" in os.environ['ACTIVE_UI']):
112+
assert ("Starting Android emulator with image Api" in output)
113+
assert ("installing" in output)
114+
assert ("running" in output)
115+
116+
#TODO: Get device id and verify files are deployed and process is running on this device
117+
118+
@unittest.skip("Moved to test_210_Emulate_MissingPlatform - this is no more a negative case due to https://github.com/NativeScript/nativescript-cli/issues/785")
99119
def test_400_Emulate_MissingPlatform(self):
100120
CreateProject(projName="TNS_App")
101121
output = runAUT(tnsPath + " emulate android --path TNS_App")

0 commit comments

Comments
 (0)