0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-29 08:58:01 -04:00

docs: update cli/js/tests README (#5531)

This commit is contained in:
Ali Hasani 2020-05-17 14:44:37 +04:30 committed by GitHub
parent c4fe58d8df
commit 6ffb8ee2c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,27 +50,27 @@ There are three ways to run `unit_test_runner.ts`:
``` ```
# Run all tests. Spawns worker processes for each discovered permission # Run all tests. Spawns worker processes for each discovered permission
# combination: # combination:
target/debug/deno -A cli/js/tests/unit_test_runner.ts --master target/debug/deno run -A cli/js/tests/unit_test_runner.ts --master
# By default all output of worker processes is discarded; for debug purposes # By default all output of worker processes is discarded; for debug purposes
# the --verbose flag preserves output from the worker # the --verbose flag preserves output from the worker
target/debug/deno -A cli/js/tests/unit_test_runner.ts --master --verbose target/debug/deno run -A cli/js/tests/unit_test_runner.ts --master --verbose
# Run subset of tests that don't require any permissions # Run subset of tests that don't require any permissions
target/debug/deno cli/js/tests/unit_test_runner.ts target/debug/deno run --unstable cli/js/tests/unit_test_runner.ts
# Run subset tests that require "net" and "read" permissions # Run subset tests that require "net" and "read" permissions
target/debug/deno --allow-net --allow-read cli/js/tests/unit_test_runner.ts target/debug/deno run --unstable --allow-net --allow-read cli/js/tests/unit_test_runner.ts
# "worker" mode communicates with parent using TCP socket on provided address; # "worker" mode communicates with parent using TCP socket on provided address;
# after initial setup drops permissions to specified set. It shouldn't be used # after initial setup drops permissions to specified set. It shouldn't be used
# directly, only be "master" process. # directly, only be "master" process.
target/debug/deno -A cli/js/tests/unit_test_runner.ts --worker --addr=127.0.0.1:4500 --perms=net,write,run target/debug/deno run -A cli/js/tests/unit_test_runner.ts --worker --addr=127.0.0.1:4500 --perms=net,write,run
# Run specific tests # Run specific tests
target/debug/deno --allow-net cli/js/tests/unit_test_runner.ts -- netTcpListenClose target/debug/deno run --unstable --allow-net cli/js/tests/unit_test_runner.ts -- netTcpListenClose
RUST_BACKTRACE=1 cargo run -- --allow-read --allow-write cli/js/tests/unit_test_runner.ts -- netUnixDialListen RUST_BACKTRACE=1 cargo run -- run --unstable --allow-read --allow-write cli/js/tests/unit_test_runner.ts -- netUnixDialListen
``` ```
### Http server ### Http server