1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:28:12 +00:00

Base: Update test-js(1) man page

This commit is contained in:
Linus Groh 2020-10-18 22:02:01 +01:00 committed by Andreas Kling
parent ed116636ce
commit 57e7b2f8e4

View file

@ -5,7 +5,7 @@ test-js - run the LibJS test suite
## Synopsis
```**sh
$ test-js [options...]
$ test-js [options...] [path]
```
## Description
@ -14,9 +14,18 @@ $ test-js [options...]
tests are using a custom JavaScript testing framework inspired by
[Jest](https://jestjs.io) (see [`test-common.js`](/home/anon/js-tests/test-common.js)).
It also supports the [test262 parser tests](https://github.com/tc39/test262-parser-tests).
The test root directory is assumed to be `/home/anon/js-tests`, or `$SERENITY_ROOT/Libraries/LibJS/Tests`
when using the Lagom build. Optionally you can pass a custom path to `test-js` to override these defaults.
You can disable output from `dbg()` calls by setting the `DISABLE_DBG_OUTPUT` environment variable.
## Options
* `-t`, `--show-time`: Show duration of each test
* `-g`, `--collect-often`: Collect garbage after every allocation
* `--test262-parser-tests`: Run test262 parser tests
## Examples