diff options
| author | Vincent LE GOFF <g_n_s@hotmail.fr> | 2019-03-26 16:29:12 +0100 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-03-26 11:29:12 -0400 |
| commit | b7022848f6b68cb6a79eb1593ad683ff4d217116 (patch) | |
| tree | 3576fdfa28b844ef94f943c73299720a27f7a00a /testing/README.md | |
| parent | 630d0f213d54fe2dcce94b338a87373d64e3f716 (diff) | |
testing: turn off exitOnFail by default (denoland/deno_std#307)
Original: https://github.com/denoland/deno_std/commit/d9e89531105b6ce989e5a860781536cbdc99235c
Diffstat (limited to 'testing/README.md')
| -rw-r--r-- | testing/README.md | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/testing/README.md b/testing/README.md index 684d5d4bc..b0c6bfc1a 100644 --- a/testing/README.md +++ b/testing/README.md @@ -13,7 +13,7 @@ object is passed, the `name` property is used to identify the test. If the asser Asserts are exposed in `testing/asserts.ts` module. -- `equal` - Deep comparision function, where `actual` and `expected` are +- `equal()` - Deep comparision function, where `actual` and `expected` are compared deeply, and if they vary, `equal` returns `false`. - `assert()` - Expects a boolean value, throws if the value is `false`. - `assertEquals()` - Uses the `equal` comparison and throws if the `actual` and @@ -37,7 +37,10 @@ Asserts are exposed in `testing/asserts.ts` module. - `unimplemented()` - Use this to stub out methods that will throw when invoked - `unreachable()` - Used to assert unreachable code -`runTests()` executes the declared tests. +`runTests()` executes the declared tests. It accepts a `RunOptions` parameter: + +- parallel : Execute tests in a parallel way. +- exitOnFail : if one test fails, test will throw an error and stop the tests. If not all tests will be processed. Basic usage: |
