Skip to content

fix: update android tests logs #365

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions tests/runtimes/android/android_runtime_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,11 +334,9 @@ def test_430_verify_JSParser_in_SBG_is_failing_the_build_when_there_is_an_error(
File.copy(source=source_js, target=target_js, backup_files=True)
log = Tns.build_android(os.path.join(TEST_RUN_HOME, APP_NAME), verify=False).output

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

def test_440_tns_run_android_new_date_work_as_expected_when_changing_timezone(self):
"""
Expand Down
3 changes: 1 addition & 2 deletions tests/runtimes/android/sbg_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,10 @@ def test_300_fail_build_when_sbg_bindings_file_is_missing(self):
'sbg-bindings.txt')
js_parser_path = os.path.join(TEST_RUN_HOME, APP_NAME, 'platforms', 'android', 'build-tools',
'jsparser', 'js_parser.js')
exception_text = "Exception in thread \"main\" java.io.IOException: Couldn\'t find \'{0}\' bindings input " \
exception_text = "Error executing Static Binding Generator: Couldn\'t find \'{0}\' bindings input " \
"file. Most probably there\'s an error in the JS Parser execution. You can run JS Parser " \
"with verbose logging by executing \"node \'{1}\' enableErrorLogging\"" \
.format(sbg_bindings_path, js_parser_path)
assert "BUILD FAILED" in result.output, "Expected output not found"
assert exception_text in result.output, "Expected output not found"

def test_301_check_if_sbg_is_working_correctly_with_nativescript_purchase_plugin(self):
Expand Down