Skip to content
New issue

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

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

Already on GitHub? # to your account

Add just test-stream to run a test with live output #2655

Merged
merged 1 commit into from
Sep 4, 2024
Merged
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
9 changes: 9 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
alias b := build
alias t := test
alias f := format
alias st := stream-test

default:
@just --list
Expand Down Expand Up @@ -28,6 +29,14 @@ test *args="//...":
test-asan *args="//...":
just test {{args}} --config=asan

# e.g. just stream-test //src/cloudflare:cloudflare.capnp@eslint
stream-test args:
bazel test {{args}} --test_output=streamed --test_env=LLVM_SYMBOLIZER=llvm-symbolizer-{{clang_version}}

# e.g. just node-test zlib
node-test test_name:
just stream-test //src/workerd/api/node:tests/{{test_name}}-nodejs-test

format:
python3 tools/cross/format.py

Expand Down