5
5
6
6
from parameterized import parameterized
7
7
8
- from core .base_test .tns_test import TnsTest
8
+ from core .base_test .tns_run_test import TnsRunTest
9
9
from core .enums .framework_type import FrameworkType
10
10
from core .enums .os_type import OSType
11
11
from core .enums .platform_type import Platform
12
- from core .log .log import Log
13
12
from core .settings import Settings
14
- from core .utils .device .device_manager import DeviceManager
15
13
from core .utils .npm import Npm
16
14
from data .templates import Template
17
15
from products .nativescript .tns import Tns
@@ -49,21 +47,7 @@ def get_data():
49
47
50
48
51
49
# noinspection PyMethodMayBeStatic,PyUnusedLocal
52
- class TestsForTnsTest (TnsTest ):
53
-
54
- @classmethod
55
- def setUpClass (cls ):
56
- TnsTest .setUpClass ()
57
- cls .emu = DeviceManager .Emulator .ensure_available (Settings .Emulators .DEFAULT )
58
- if Settings .HOST_OS is OSType .OSX :
59
- cls .sim = DeviceManager .Simulator .ensure_available (Settings .Simulators .DEFAULT )
60
-
61
- def setUp (self ):
62
- TnsTest .setUp (self )
63
-
64
- @classmethod
65
- def tearDownClass (cls ):
66
- TnsTest .tearDownClass ()
50
+ class TestsForTnsTest (TnsRunTest ):
67
51
68
52
@parameterized .expand (get_data ())
69
53
def test_100 (self , title , framework , template , platform ):
@@ -89,12 +73,7 @@ def test_100(self, title, framework, template, platform):
89
73
Tns .test_init (app_name = APP_NAME , framework = framework )
90
74
91
75
# Run Tests
92
- if Settings .HOST_OS != OSType .WINDOWS :
93
- Tns .test (app_name = APP_NAME , platform = Platform .ANDROID , emulator = True , justlaunch = True )
94
- # TODO: Modify hello-world test with some real test (importing modules) and run the test again.
95
- else :
96
- Log .info ('Due to unknown issues --justlauch do not exit on Windows when tests are executed on Jenkins!' )
97
- # TODO: Fix it!
76
+ Tns .test (app_name = APP_NAME , platform = Platform .ANDROID , emulator = True , justlaunch = True )
98
77
99
78
def test_400_invalid_framework_name (self ):
100
79
result = Tns .create (app_name = APP_NAME , template = Template .MIN_JS .local_package , update = False , verify = False )
0 commit comments