Environment ‐ Deno - uhop/tape-six GitHub Wiki

Individual tests

tape-six tests are directly executable with deno.

Example:

deno run --allow-read --allow-hrtime tests/manual/test-three-tests.js

Don't forget to specify --allow-all so tests can be run, or individual permissions:

  • --allow-read — so deno can read and load files from a file system, including JavaScript files.
  • --allow-hrtime — so tests can use a high-resolution timer. This permission is optional. No need to specify it if you don't care about the exact time spent on individual tests.

That are all permissions required to run tape-six. If your code does something extra, like writing files, using the network, and so on, don't forget to specify those permissions as well.

If you are unclear about what permissions are required for your code please consult the documentation: Deno's permissions.

Running utilities

Running tape6 (use one of):

tape6-deno # doesn't work as of 10/6/2024
deno run -A `npx tape6 --self`
deno run -A `npx tape6-runner node`

Warning: -A allows everything. You may want to use the proper set of permissions.

Running tape6-server:

deno run --allow-read --allow-env --allow-net `npx tape6-server --self` --trace
deno run --allow-read --allow-env --allow-net `npx tape6-runner server` --trace