Skip to content

Commit 0613f38

Browse files
Vasil ChimevVasil Chimev
Vasil Chimev
authored and
Vasil Chimev
committed
https://github.com/NativeScript/nativescript-cli/pull/849
NativeScript/nativescript-cli#850
1 parent 01cf87a commit 0613f38

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

tests/build_linux.py

+13
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,19 @@ def test_210_Build_Android_PlatformNotAdded(self):
114114
assert not ("FAILURE" in output)
115115
assert FileExists("TNS_App/platforms/android/build/outputs/apk/TNSApp-debug.apk")
116116

117+
def test_211_Build_Android_NoPlatformsFolder(self):
118+
CreateProject(projName="TNS_App")
119+
CleanupFolder('./TNS_App/platforms')
120+
output = runAUT(tnsPath + " build android --path TNS_App")
121+
122+
assert ("Project successfully prepared" in output)
123+
assert ("BUILD SUCCESSFUL" in output)
124+
assert ("Project successfully built" in output)
125+
126+
assert not ("ERROR" in output)
127+
assert not ("FAILURE" in output)
128+
assert FileExists("TNS_App/platforms/android/build/outputs/apk/TNSApp-debug.apk")
129+
117130
def test_300_Build_Android_WithAdditionalStylesXML(self):
118131

119132
# This is test for issue 644

tests/build_osx.py

+10
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,16 @@ def test_210_Build_iOS_PlatformNotAdded(self):
126126
assert ("Project successfully built" in output)
127127
assert FileExists("TNS_App/platforms/ios/build/emulator/TNSApp.app")
128128

129+
def test_211_Build_iOS_NoPlatformsFolder(self):
130+
CreateProject(projName="TNS_App")
131+
CleanupFolder('./TNS_App/platforms')
132+
output = runAUT(tnsPath + " build ios --path TNS_App")
133+
assert ("Project successfully prepared" in output)
134+
assert ("build/emulator/TNSApp.app" in output)
135+
assert ("** BUILD SUCCEEDED **" in output)
136+
assert ("Project successfully built" in output)
137+
assert FileExists("TNS_App/platforms/ios/build/emulator/TNSApp.app")
138+
129139
def test_300_Build_iOS_WithDashInPath(self):
130140
CreateProjectAndAddPlatform(projName="tns-app", platform="ios", frameworkPath=iosRuntimeSymlinkPath, symlink=True)
131141

0 commit comments

Comments
 (0)