@@ -172,6 +172,7 @@ def test_202_build_android_with_log_trace_and_platform_not_added_or_empty(self):
172
172
assert "[DEBUG]" in output
173
173
assert "FAILURE" not in output
174
174
175
+ @unittest .skipIf (CURRENT_OS != OSType .OSX , "Run only on macOS." )
175
176
def test_300_build_project_with_dash_and_ios_inspector_added (self ):
176
177
"""
177
178
Verify we can build projects with dashes.
@@ -321,12 +322,13 @@ def test_406_build_release_without_key_options(self):
321
322
output = Tns .build_android (attributes = {"--release" : "" , "--path" : self .app_name }, assert_success = False )
322
323
assert "When producing a release build, you need to specify all --key-store-* options." in output
323
324
assert "# tns build android" in output
324
- assert not File .exists (os .path .join (self .app_name , TnsAsserts .PLATFORM_ANDROID_APK_RELEASE_PATH , self .release_apk ))
325
+ assert not File .exists (
326
+ os .path .join (self .app_name , TnsAsserts .PLATFORM_ANDROID_APK_RELEASE_PATH , self .release_apk ))
325
327
326
328
def test_410_generated_classes_not_be_deleted_on_rebuild (self ):
327
329
# https: // github.com / NativeScript / nativescript - cli / issues / 3560
328
330
Tns .platform_remove (platform = Platform .ANDROID , attributes = {"--path" : self .app_name },
329
- assert_success = False )
331
+ assert_success = False )
330
332
Tns .platform_add_android (attributes = {"--path" : self .app_name , "--frameworkPath" : ANDROID_PACKAGE })
331
333
target = os .path .join (self .app_name , 'app' )
332
334
source = os .path .join (TEST_RUN_HOME , 'data' , 'issues' , 'android-runtime-904' , 'MyActivity.js' )
@@ -364,7 +366,7 @@ def test_440_binding_text_exists(self):
364
366
Folder .cleanup (self .app_ts_name )
365
367
366
368
def test_441_android_typings (self ):
367
- #Build with --androidTypings got nothing #3381
369
+ # Build with --androidTypings got nothing #3381
368
370
Tns .run_tns_command ("build android --androidTypings" , attributes = {"--path" : self .app_name })
369
371
assert File .exists (self .app_name + "/android.d.ts" )
370
372
assert File .exists (self .app_name + "/_helpers.d.ts" )
@@ -410,10 +412,10 @@ def test_451_resources_update(self):
410
412
411
413
@unittest .skipIf (Java .version () != "1.8" , "Run only if Java version is 8." )
412
414
def test_460_include_gradle_flavor (self ):
413
- #https://github.com/NativeScript/android-runtime/pull/937
414
- #https: // github.com / NativeScript / nativescript - cli / pull / 3467
415
+ # https://github.com/NativeScript/android-runtime/pull/937
416
+ # https: // github.com / NativeScript / nativescript - cli / pull / 3467
415
417
Tns .platform_remove (platform = Platform .ANDROID , attributes = {"--path" : self .app_name },
416
- assert_success = False )
418
+ assert_success = False )
417
419
source = os .path .join (TEST_RUN_HOME , 'data' , 'issues' , 'android-runtime-pr-937' , 'app.gradle' )
418
420
target = os .path .join (self .app_name , 'app' , 'App_Resources' , 'Android' , 'app.gradle' )
419
421
File .copy (src = source , dest = target )
0 commit comments