Skip to content

Commit 0c69cfa

Browse files
committed
Do not clone QA-TestApps
1 parent 0fbe409 commit 0c69cfa

5 files changed

+13
-19
lines changed

runNose.py

-6
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,6 @@ def get_repos():
100100
Npm.pack(folder=os.path.join(SUT_FOLDER, 'template-hello-world-ng'),
101101
output_file=os.path.join(SUT_FOLDER, 'tns-template-hello-world-ng.tgz'))
102102

103-
# Clone QA-TestApps repo
104-
# TODO: QA-TestApps is privite, we should make it public or move all test data to data folder.
105-
Git.clone_repo(repo_url="[email protected]:NativeScript/QA-TestApps.git",
106-
local_folder=SUT_FOLDER + "/QA-TestApps", branch=BRANCH)
107-
108-
109103
if __name__ == '__main__':
110104

111105
# Cleanup files and folders created by the test execution

tests/build/ios/plugin_ios_cocoa_pods_sandbox_tests.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def test_100_plugin_add_sandbox_pod_can_write_in_app_folder(self):
2626
Tns.platform_add_ios(attributes={"--path": self.app_name,
2727
"--frameworkPath": IOS_RUNTIME_PATH})
2828

29-
plugin_path = SUT_FOLDER + "/QA-TestApps/CocoaPods/nativescript-ios-working-with-sandbox-plugin"
29+
plugin_path = SUT_FOLDER + "/data/CocoaPods/nativescript-ios-working-with-sandbox-plugin"
3030
output = Tns.plugin_add(plugin_path, attributes={"--path": self.app_name}, assert_success=False)
3131
assert "Successfully installed plugin nativescript-ios-working-with-sandbox-plugin." in output
3232

@@ -46,7 +46,7 @@ def test_400_plugin_add_sandbox_pod_can_write_outside_app_folder_by_default(self
4646
Tns.platform_add_ios(attributes={"--path": self.app_name,
4747
"--frameworkPath": IOS_RUNTIME_PATH})
4848

49-
plugin_path = SUT_FOLDER + "/QA-TestApps/CocoaPods/nativescript-ios-fail-with-sandbox-plugin"
49+
plugin_path = SUT_FOLDER + "/data/CocoaPods/nativescript-ios-fail-with-sandbox-plugin"
5050
output = Tns.plugin_add(plugin_path, attributes={"--path": self.app_name}, assert_success=False)
5151
assert "Successfully installed plugin nativescript-ios-fail-with-sandbox-plugin." in output
5252

@@ -66,7 +66,7 @@ def test_401_plugin_add_sandbox_pod_can_not_write_outside_app_folder_if_use_pod_
6666
Tns.create_app(self.app_name)
6767
Tns.platform_add_ios(attributes={"--path": self.app_name, "--frameworkPath": IOS_RUNTIME_PATH})
6868

69-
plugin_path = SUT_FOLDER + "/QA-TestApps/CocoaPods/nativescript-ios-fail-with-sandbox-plugin"
69+
plugin_path = SUT_FOLDER + "/data/CocoaPods/nativescript-ios-fail-with-sandbox-plugin"
7070
output = Tns.plugin_add(plugin_path, attributes={"--path": self.app_name}, assert_success=False)
7171
assert "Successfully installed plugin nativescript-ios-fail-with-sandbox-plugin." in output
7272

tests/build/ios/plugin_ios_cocoa_pods_tests.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def test_100_plugin_add_multiple_pods(self):
2121
Tns.create_app(self.app_name)
2222
Tns.platform_add_ios(attributes={"--path": self.app_name, "--frameworkPath": IOS_RUNTIME_PATH})
2323

24-
plugin_path = SUT_FOLDER + "/QA-TestApps/CocoaPods/carousel"
24+
plugin_path = SUT_FOLDER + "/data/CocoaPods/carousel"
2525
output = Tns.plugin_add(plugin_path, attributes={"--path": self.app_name}, assert_success=False)
2626
assert "Successfully installed plugin carousel." in output
2727
assert File.exists(self.app_name + "/node_modules/carousel/package.json")
@@ -30,7 +30,7 @@ def test_100_plugin_add_multiple_pods(self):
3030
output = File.read(self.app_name + "/package.json")
3131
assert "carousel" in output
3232

33-
plugin_path = SUT_FOLDER + "/QA-TestApps/CocoaPods/keychain"
33+
plugin_path = SUT_FOLDER + "/data/CocoaPods/keychain"
3434
output = Tns.plugin_add(plugin_path, attributes={"--path": self.app_name}, assert_success=False)
3535
assert "Successfully installed plugin keychain." in output
3636
assert File.exists(self.app_name + "/node_modules/keychain/package.json")
@@ -60,7 +60,7 @@ def test_100_plugin_add_multiple_pods(self):
6060
def test_201_plugin_add_pod_google_maps_before_platform_add_ios(self):
6161
Tns.create_app(self.app_name)
6262

63-
plugin_path = SUT_FOLDER + "/QA-TestApps/CocoaPods/googlesdk"
63+
plugin_path = SUT_FOLDER + "/data/CocoaPods/googlesdk"
6464
output = Tns.plugin_add(plugin_path, attributes={"--path": self.app_name}, assert_success=False)
6565
assert "Successfully installed plugin googlesdk." in output
6666
assert File.exists(self.app_name + "/node_modules/googlesdk/package.json")
@@ -99,7 +99,7 @@ def test_202_plugin_add_pod_google_maps_after_platform_add_ios(self):
9999
Tns.create_app(self.app_name)
100100
Tns.platform_add_ios(attributes={"--path": self.app_name, "--frameworkPath": IOS_RUNTIME_PATH})
101101

102-
plugin_path = SUT_FOLDER + "/QA-TestApps/CocoaPods/googlesdk"
102+
plugin_path = SUT_FOLDER + "/data/CocoaPods/googlesdk"
103103
output = Tns.plugin_add(plugin_path, attributes={"--path": self.app_name}, assert_success=False)
104104
assert "Successfully installed plugin googlesdk." in output
105105
assert File.exists(self.app_name + "/node_modules/googlesdk/package.json")
@@ -136,7 +136,7 @@ def test_401_plugin_add_invalid_pod(self):
136136
Tns.create_app(self.app_name)
137137
Tns.platform_add_ios(attributes={"--path": self.app_name, "--frameworkPath": IOS_RUNTIME_PATH})
138138

139-
plugin_path = SUT_FOLDER + "/QA-TestApps/CocoaPods/invalidpod"
139+
plugin_path = SUT_FOLDER + "/data/CocoaPods/invalidpod"
140140
output = Tns.plugin_add(plugin_path, attributes={"--path": self.app_name}, assert_success=False)
141141
assert "Successfully installed plugin invalidpod." in output
142142
assert File.exists(self.app_name + "/node_modules/invalidpod/package.json")

tests/build/ios/plugin_ios_staitc_libs_tests.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def setUp(self):
2020
def test_201_plugin_add_static_lib_universal_before_platform_add_ios(self):
2121
Tns.create_app(self.app_name)
2222

23-
plugin_path = SUT_FOLDER + "/QA-TestApps/static-lib/hello-plugin"
23+
plugin_path = SUT_FOLDER + "/data/static-lib/hello-plugin"
2424
output = Tns.plugin_add(plugin_path, attributes={"--path": self.app_name}, assert_success=False)
2525
assert "Successfully installed plugin hello." in output
2626

@@ -46,7 +46,7 @@ def test_202_plugin_add_static_lib_universal_after_platform_add_ios(self):
4646
Tns.create_app(self.app_name)
4747
Tns.platform_add_ios(attributes={"--path": self.app_name, "--frameworkPath": IOS_RUNTIME_PATH})
4848

49-
plugin_path = SUT_FOLDER + "/QA-TestApps/static-lib/hello-plugin"
49+
plugin_path = SUT_FOLDER + "/data/static-lib/hello-plugin"
5050
output = Tns.plugin_add(plugin_path, attributes={"--path": self.app_name}, assert_success=False)
5151
assert "Successfully installed plugin hello." in output
5252

@@ -71,7 +71,7 @@ def test_401_plugin_add_static_lib_non_universal(self):
7171
Tns.create_app(self.app_name)
7272
Tns.platform_add_ios(attributes={"--path": self.app_name, "--frameworkPath": IOS_RUNTIME_PATH})
7373

74-
plugin_path = SUT_FOLDER + "/QA-TestApps/static-lib/bye-plugin"
74+
plugin_path = SUT_FOLDER + "/data/static-lib/bye-plugin"
7575
output = Tns.plugin_add(plugin_path, attributes={"--path": self.app_name}, assert_success=False)
7676
assert "Successfully installed plugin bye" in output
7777

tests/build/ios/plugin_ios_xcconfig_tests.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def setUp(self):
1919
def test_100_plugin_add_xcconfig_before_platform_add_ios(self):
2020
Tns.create_app(self.app_name)
2121

22-
plugin_path = SUT_FOLDER + "/QA-TestApps/CocoaPods/xcconfig-plugin"
22+
plugin_path = SUT_FOLDER + "/data/CocoaPods/xcconfig-plugin"
2323
output = Tns.plugin_add(plugin_path, attributes={"--path": self.app_name}, assert_success=False)
2424
assert "Successfully installed plugin xcconfig-plugin." in output
2525
assert File.exists(self.app_name + "/node_modules/xcconfig-plugin/package.json")
@@ -47,7 +47,7 @@ def test_202_plugin_add_xcconfig_after_platform_add_ios(self):
4747
Tns.create_app(self.app_name)
4848
Tns.platform_add_ios(attributes={"--path": self.app_name, "--frameworkPath": IOS_RUNTIME_PATH})
4949

50-
plugin_path = SUT_FOLDER + "/QA-TestApps/CocoaPods/xcconfig-plugin"
50+
plugin_path = SUT_FOLDER + "/data/CocoaPods/xcconfig-plugin"
5151
output = Tns.plugin_add(plugin_path, attributes={"--path": self.app_name}, assert_success=False)
5252
assert "Successfully installed plugin xcconfig-plugin." in output
5353
assert File.exists(self.app_name + "/node_modules/xcconfig-plugin/package.json")

0 commit comments

Comments
 (0)