Skip to content

Commit 72667fc

Browse files
author
Nataliya Hristova
authored
fix: update android tests logs (#365)
1 parent 99d4cc6 commit 72667fc

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

tests/runtimes/android/android_runtime_tests.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,11 +334,9 @@ 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
338337
# https://github.com/NativeScript/android-runtime/issues/1405
339338
assert "JSParser Error: Not enough or too many arguments passed(0) when trying to extend interface: " \
340339
"java.util.List in file: bundle.js" in log
341-
assert "Execution failed for task ':app:runSbg'" in log
342340

343341
def test_440_tns_run_android_new_date_work_as_expected_when_changing_timezone(self):
344342
"""

tests/runtimes/android/sbg_tests.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,10 @@ 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 = "Exception in thread \"main\" java.io.IOException: Couldn\'t find \'{0}\' bindings input " \
47+
exception_text = "Error executing Static Binding Generator: 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"
5251
assert exception_text in result.output, "Expected output not found"
5352

5453
def test_301_check_if_sbg_is_working_correctly_with_nativescript_purchase_plugin(self):

0 commit comments

Comments
 (0)