diff options
| author | Casper Beyer <caspervonb@pm.me> | 2021-04-26 05:38:59 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-25 23:38:59 +0200 |
| commit | f3751e498faabd524494a4b70c49b1f53fe5ebdd (patch) | |
| tree | 9f3cf5b15fc10d0ef12f78c984fbbb59554343ef /cli/tests/test/allow_all.out | |
| parent | 7063e449f11ab2cff492ba90314da7a0bcd994a6 (diff) | |
feat(cli): add test permissions to Deno.test (#10188)
This commits adds adds "permissions" option to the test definitions
which allows tests to run with different permission sets than
the process's permission.
The change will only be in effect within the test function, once the
test has completed the original process permission set is restored.
Test permissions cannot exceed the process's permission.
You can only narrow or drop permissions, failure to acquire a
permission results in an error being thrown and the test case will fail.
Diffstat (limited to 'cli/tests/test/allow_all.out')
| -rw-r--r-- | cli/tests/test/allow_all.out | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/cli/tests/test/allow_all.out b/cli/tests/test/allow_all.out new file mode 100644 index 000000000..3edb88d0f --- /dev/null +++ b/cli/tests/test/allow_all.out @@ -0,0 +1,18 @@ +[WILDCARD] +running 14 tests +test read false ... ok [WILDCARD] +test read true ... ok [WILDCARD] +test write false ... ok [WILDCARD] +test write true ... ok [WILDCARD] +test net false ... ok [WILDCARD] +test net true ... ok [WILDCARD] +test env false ... ok [WILDCARD] +test env true ... ok [WILDCARD] +test run false ... ok [WILDCARD] +test run true ... ok [WILDCARD] +test plugin false ... ok [WILDCARD] +test plugin true ... ok [WILDCARD] +test hrtime false ... ok [WILDCARD] +test hrtime true ... ok [WILDCARD] + +test result: ok. 14 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [WILDCARD] |
