Skip to content

Commit e6a0e8e

Browse files
Vasil ChimevVasil Chimev
Vasil Chimev
authored and
Vasil Chimev
committed
Update test_400_Deploy_MissingPlatform.
According to NativeScript/nativescript-cli#785.
1 parent f7d693e commit e6a0e8e

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

tests/deploy_linux.py

+13-5
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,20 @@ def test_201_Deploy_Android_InsideProject(self):
6262
assert ("Project successfully prepared" in output)
6363
assert ("Project successfully built" in output)
6464
assert ("Successfully deployed on device with identifier" in output)
65-
66-
def test_400_Deploy_MissingPlatform(self):
67-
CreateProject(projName="TNS_App")
65+
66+
def test_210_Deploy_MissingPlatform(self):
67+
CreateProject(projName="TNS_App")
6868
output = runAUT(tnsPath + " deploy android --path TNS_App --justlaunch")
69-
assert ("The platform android is not added to this project" in output)
70-
69+
assert ("Copying template files..." in output)
70+
assert ("Updated project.properties" in output)
71+
assert ("Updated local.properties" in output)
72+
assert ("Project successfully created." in output)
73+
74+
assert ("Project successfully prepared" in output)
75+
assert ("Project successfully built" in output)
76+
assert ("Successfully deployed on device with identifier" in output)
77+
#TODO: Get device id and verify files are deployed and process is running on this device
78+
7179
def test_401_Deploy_InvalidPlatform(self):
7280
CreateProjectAndAddPlatform(projName="TNS_App", platform="android", frameworkPath=androidRuntimePath)
7381
output = runAUT(tnsPath + " deploy invalidPlatform --path TNS_App --justlaunch")

0 commit comments

Comments
 (0)