1
1
# pylint: disable=redefined-builtin
2
2
"""
3
3
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
5
7
"""
6
8
import os
7
9
@@ -55,7 +57,7 @@ def test_scoped_package_only(self, app_name, template_info):
55
57
Tns .platform_add_ios (app_name = app_name , framework_path = Settings .IOS .FRAMEWORK_PATH )
56
58
57
59
# 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 )
59
61
strings = TnsLogs .run_messages (app_name = app_name , run_type = RunType .UNKNOWN , platform = Platform .ANDROID )
60
62
TnsLogs .wait_for_log (log_file = result .log_file , string_list = strings , timeout = 300 )
61
63
for text in template_info .texts :
@@ -65,7 +67,7 @@ def test_scoped_package_only(self, app_name, template_info):
65
67
Tns .kill ()
66
68
if Settings .HOST_OS is OSType .OSX :
67
69
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 )
69
71
strings = TnsLogs .run_messages (app_name = app_name , run_type = RunType .UNKNOWN , platform = Platform .IOS )
70
72
TnsLogs .wait_for_log (log_file = result .log_file , string_list = strings , timeout = 300 )
71
73
for text in template_info .texts :
0 commit comments