Skip to content

chore: run tests with aot and uglify #461

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 7, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions tests/cli/run/tests/test_run_scope_package_only.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# pylint: disable=redefined-builtin
"""
Tests for tns run on project without tns-core-modules package.
See https://github.com/NativeScript/nativescript-dev-webpack/issues/1089
See:
https://github.com/NativeScript/nativescript-dev-webpack/issues/1089
https://github.com/NativeScript/nativescript-angular/issues/2058
"""
import os

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

# Run Android
result = Tns.run_android(app_name=app_name, device=self.emu.id)
result = Tns.run_android(app_name=app_name, device=self.emu.id, aot=True, uglify=True)
strings = TnsLogs.run_messages(app_name=app_name, run_type=RunType.UNKNOWN, platform=Platform.ANDROID)
TnsLogs.wait_for_log(log_file=result.log_file, string_list=strings, timeout=300)
for text in template_info.texts:
Expand All @@ -65,7 +67,7 @@ def test_scoped_package_only(self, app_name, template_info):
Tns.kill()
if Settings.HOST_OS is OSType.OSX:
Simctl.uninstall_all(simulator_info=self.sim)
result = Tns.run_ios(app_name=app_name, device=self.sim.id)
result = Tns.run_ios(app_name=app_name, device=self.sim.id, aot=True, uglify=True)
strings = TnsLogs.run_messages(app_name=app_name, run_type=RunType.UNKNOWN, platform=Platform.IOS)
TnsLogs.wait_for_log(log_file=result.log_file, string_list=strings, timeout=300)
for text in template_info.texts:
Expand Down