summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2020-10-18 22:02:01 +0100
committerAndreas Kling <kling@serenityos.org>2020-10-19 11:29:55 +0200
commit57e7b2f8e40f9663bd4a7fca2a09b719c476722c (patch)
tree8441bd19a178c1fbe1a25c86749f140eb1239dac
parented116636cea16dc2ade3ebaded0f36e0f6c73b51 (diff)
downloadserenity-57e7b2f8e40f9663bd4a7fca2a09b719c476722c.zip
Base: Update test-js(1) man page
-rw-r--r--Base/usr/share/man/man1/test-js.md11
1 files changed, 10 insertions, 1 deletions
diff --git a/Base/usr/share/man/man1/test-js.md b/Base/usr/share/man/man1/test-js.md
index cbf5577bb2..d1a6be034e 100644
--- a/Base/usr/share/man/man1/test-js.md
+++ b/Base/usr/share/man/man1/test-js.md
@@ -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