@@ -618,6 +618,24 @@ def test_310_tns_run_android_clean_builds(self):
618
618
619
619
Device .wait_for_text (device_id = EMULATOR_ID , text = '42 taps left' )
620
620
621
+ @unittest .skip ("https://github.com/NativeScript/nativescript-cli/issues/2670" )
622
+ def test_311_tns_run_android_clean_livesync (self ):
623
+ #remove skip after check issue
624
+ #https://github.com/NativeScript/nativescript-cli/issues/2670
625
+ Tns .run_android (attributes = {'--path' : self .app_name , '--device' : EMULATOR_ID , '--justlaunch' : '' })
626
+
627
+ # Verify `--clean` without any changes rebuild native project (and runs properly)
628
+ log = Tns .run_android (attributes = {'--path' : self .app_name , '--device' : EMULATOR_ID , '--clean' : '' },
629
+ wait = False , assert_success = False )
630
+ strings = ['Gradle clean...' ]
631
+ Tns .wait_for_log (log_file = log , string_list = strings , timeout = 120 , check_interval = 10 , clean_log = False )
632
+ time .sleep (10 )
633
+
634
+ ReplaceHelper .replace (self .app_name , ReplaceHelper .CHANGE_XML )
635
+ strings = ['Skipping prepare.' ]
636
+ Tns .wait_for_log (log_file = log , string_list = strings , timeout = 120 , check_interval = 10 , clean_log = False )
637
+ assert "Gradle clean..." not in log
638
+
621
639
def test_315_tns_run_android_change_appResources_check_per_platform (self ):
622
640
# https://github.com/NativeScript/nativescript-cli/pull/3619
623
641
output = Tns .run_android (attributes = {'--path' : self .app_name }, wait = False , assert_success = False )
0 commit comments