Skip to content

wasm-bindgen-test-runner: redirect worker console #4540

@drewcrawford

Description

@drewcrawford

wasm-bindgen-test-runner redirects the console for the test thread onto native CLI. However in my testing, further workers (such as spawned via wasm_thread) are not redirected, causing all other logs to be dropped in native CLI which is highly misleading for a CLI-based workflow.

proposed solution

  • Some API like `wasm_bindgen_test_runner::hook_console() that hooks the console on arbitrary threads if not already
  • Could be implemented by wasm_thread or by users to unblock their debugging workflows

Intent to solve out of tree

This is the third issue I've filed in this project:

This is my announcement that I will no longer be routinely filing bugs in this repository until and unless a material change in policy happens upstream. Interested parties can contact me separately for license-compliant out of tree unofficial patches on various topics.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions