Skip to content

Commit f8a3384

Browse files
author
Miroslava Ivanova
committed
write test for clean and livesync
1 parent c250e72 commit f8a3384

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/emulator/run_android_tests.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,24 @@ def test_310_tns_run_android_clean_builds(self):
618618

619619
Device.wait_for_text(device_id=EMULATOR_ID, text='42 taps left')
620620

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+
621639
def test_315_tns_run_android_change_appResources_check_per_platform(self):
622640
# https://github.com/NativeScript/nativescript-cli/pull/3619
623641
output = Tns.run_android(attributes={'--path': self.app_name}, wait=False, assert_success=False)

0 commit comments

Comments
 (0)