13
13
from data .templates import Template
14
14
from products .nativescript .app import App
15
15
from products .nativescript .tns import Tns
16
+ from utils .gradle import Gradle
16
17
17
18
18
19
# noinspection PyUnusedLocal
@@ -79,7 +80,7 @@ def test(self, template_name, template_info):
79
80
80
81
# Run Android
81
82
Adb .open_home (id = self .emu .id )
82
- Tns .run_android (app_name = app_name , device = self .emu .id , bundle = True )
83
+ Tns .run_android (app_name = app_name , device = self .emu .id , bundle = True , justlaunch = True )
83
84
if template_info .texts is not None :
84
85
for text in template_info .texts :
85
86
self .emu .wait_for_text (text = text , timeout = 30 )
@@ -88,12 +89,14 @@ def test(self, template_name, template_info):
88
89
89
90
# Run iOS
90
91
if Settings .HOST_OS is OSType .OSX :
91
- Tns .run_ios (app_name = app_name , device = self .sim .id , bundle = True )
92
+ Tns .run_ios (app_name = app_name , device = self .sim .id , bundle = True , justlaunch = True )
92
93
if template_info .texts is not None :
93
94
for text in template_info .texts :
94
95
self .sim .wait_for_text (text = text , timeout = 30 )
95
96
else :
96
97
self .sim .wait_for_main_color (color = Colors .WHITE )
97
98
98
99
# Cleanup
100
+ Tns .kill ()
101
+ Gradle .kill ()
99
102
Folder .clean (local_path )
0 commit comments