Skip to content

Commit 5ae9dd2

Browse files
committed
chore: run tests with aot and uglify
Add tests for NativeScript/nativescript-angular#2058
1 parent 8fbaebd commit 5ae9dd2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/cli/run/tests/test_run_scope_package_only.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# pylint: disable=redefined-builtin
22
"""
33
Tests for tns run on project without tns-core-modules package.
4-
See https://github.com/NativeScript/nativescript-dev-webpack/issues/1089
4+
See:
5+
https://github.com/NativeScript/nativescript-dev-webpack/issues/1089
6+
https://github.com/NativeScript/nativescript-angular/issues/2058
57
"""
68
import os
79

@@ -55,7 +57,7 @@ def test_scoped_package_only(self, app_name, template_info):
5557
Tns.platform_add_ios(app_name=app_name, framework_path=Settings.IOS.FRAMEWORK_PATH)
5658

5759
# Run Android
58-
result = Tns.run_android(app_name=app_name, device=self.emu.id)
60+
result = Tns.run_android(app_name=app_name, device=self.emu.id, aot=True, uglify=True)
5961
strings = TnsLogs.run_messages(app_name=app_name, run_type=RunType.UNKNOWN, platform=Platform.ANDROID)
6062
TnsLogs.wait_for_log(log_file=result.log_file, string_list=strings, timeout=300)
6163
for text in template_info.texts:
@@ -65,7 +67,7 @@ def test_scoped_package_only(self, app_name, template_info):
6567
Tns.kill()
6668
if Settings.HOST_OS is OSType.OSX:
6769
Simctl.uninstall_all(simulator_info=self.sim)
68-
result = Tns.run_ios(app_name=app_name, device=self.sim.id)
70+
result = Tns.run_ios(app_name=app_name, device=self.sim.id, aot=True, uglify=True)
6971
strings = TnsLogs.run_messages(app_name=app_name, run_type=RunType.UNKNOWN, platform=Platform.IOS)
7072
TnsLogs.wait_for_log(log_file=result.log_file, string_list=strings, timeout=300)
7173
for text in template_info.texts:

0 commit comments

Comments
 (0)