Skip to content

Commit e87422c

Browse files
author
Natalia-Hristova
committed
Revert "fix: update android tests logs (#365)"
This reverts commit 72667fc.
1 parent a584bed commit e87422c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

tests/runtimes/android/android_runtime_tests.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,11 @@ def test_430_verify_JSParser_in_SBG_is_failing_the_build_when_there_is_an_error(
334334
File.copy(source=source_js, target=target_js, backup_files=True)
335335
log = Tns.build_android(os.path.join(TEST_RUN_HOME, APP_NAME), verify=False).output
336336

337+
assert "FAILURE: Build failed with an exception" in log
337338
# https://github.com/NativeScript/android-runtime/issues/1405
338339
assert "JSParser Error: Not enough or too many arguments passed(0) when trying to extend interface: " \
339340
"java.util.List in file: bundle.js" in log
341+
assert "Execution failed for task ':app:runSbg'" in log
340342

341343
def test_440_tns_run_android_new_date_work_as_expected_when_changing_timezone(self):
342344
"""

tests/runtimes/android/sbg_tests.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,11 @@ def test_300_fail_build_when_sbg_bindings_file_is_missing(self):
4444
'sbg-bindings.txt')
4545
js_parser_path = os.path.join(TEST_RUN_HOME, APP_NAME, 'platforms', 'android', 'build-tools',
4646
'jsparser', 'js_parser.js')
47-
exception_text = "Error executing Static Binding Generator: Couldn\'t find \'{0}\' bindings input " \
47+
exception_text = "Exception in thread \"main\" java.io.IOException: Couldn\'t find \'{0}\' bindings input " \
4848
"file. Most probably there\'s an error in the JS Parser execution. You can run JS Parser " \
4949
"with verbose logging by executing \"node \'{1}\' enableErrorLogging\"" \
5050
.format(sbg_bindings_path, js_parser_path)
51+
assert "BUILD FAILED" in result.output, "Expected output not found"
5152
assert exception_text in result.output, "Expected output not found"
5253

5354
def test_301_check_if_sbg_is_working_correctly_with_nativescript_purchase_plugin(self):

0 commit comments

Comments
 (0)