3
3
"""
4
4
import os
5
5
import time
6
+ import unittest
6
7
7
8
from core .base_class .BaseClass import BaseClass
8
9
from core .npm .npm import Npm
9
10
from core .osutils .file import File
10
11
from core .osutils .folder import Folder
11
- from core .settings .settings import ANDROID_RUNTIME_PATH , TNS_PATH , TEST_RUN_HOME
12
+ from core .osutils .os_type import OSType
13
+ from core .settings .settings import ANDROID_RUNTIME_PATH , TNS_PATH , TEST_RUN_HOME , CURRENT_OS
12
14
from core .tns .replace_helper import ReplaceHelper
13
15
from core .tns .tns import Tns
14
16
from core .tns .tns_platform_type import Platform
@@ -136,6 +138,7 @@ def test_400_prepare_missing_or_missing_platform(self):
136
138
output = Tns .run_tns_command ("prepare windows" , attributes = {"--path" : self .app_name })
137
139
assert "Invalid platform windows. Valid platforms are ios or android." in output
138
140
141
+ @unittest .skipIf (CURRENT_OS == OSType .OSX , "Skip because of 'Maximum call stack size exceeded' error." )
139
142
def test_401_prepare_project_with_many_dependencies (self ):
140
143
"""
141
144
Test for https://github.com/NativeScript/nativescript-cli/issues/2561
@@ -156,4 +159,4 @@ def test_401_prepare_project_with_many_dependencies(self):
156
159
Npm .install (package = "eslint" , option = "--save" , folder = self .app_name )
157
160
Npm .install (package = "eslint-plugin-compat" , option = "--save" , folder = self .app_name )
158
161
Tns .platform_add_android (version = "2.5.0" , attributes = {"--path" : self .app_name })
159
- Tns .prepare_android (attributes = {"--path" : self .app_name }, log_trace = False )
162
+ Tns .prepare_android (attributes = {"--path" : self .app_name }, log_trace = True )
0 commit comments