summaryrefslogtreecommitdiff
path: root/cli/ops/files.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-03-05 11:52:18 +0100
committerGitHub <noreply@github.com>2020-03-05 11:52:18 +0100
commit20dad3659c60b61c9f5af5427ad61857593bf3e6 (patch)
tree414fb9c533a33ac0e3cd9f38d86189325a9c1733 /cli/ops/files.rs
parent52b96fc22a93c804702617f20d24ed115fd5a780 (diff)
refactor: preliminary cleanup of Deno.runTests() (#4237)
* refactor: preliminary cleanup of Deno.runTests() * Change time measurement to use new Date() instead of performance.now(). Because there is no guarantee that tests are run with "--allow-hr" using new Date() guarantees higher precision of 1ms instead of 2ms. * Support String type filter in "skip" and "only". * Split "exitOnFail" into "exitOnFail" and "failFast". Former tells if "runTests()" should exit with code 1 on test failure, while latter tells if "runTests()" should stop running tests on first failure. * Use "defer" to wait for unhandled promise rejection - this bit is funky and doesn't seem right, but for now it's just a rewrite from using "setTimeout". Intended to be fixed in later commits. * Remove global "__DENO_TEST_REGISTRY", don't expose list of registered tests (to be addressed in follow up commits) * Remove arbitrary slow test threshold; use uniform coloring instead
Diffstat (limited to 'cli/ops/files.rs')
0 files changed, 0 insertions, 0 deletions