An experimental Node-based test262 harness. Once this harness has stabilized, I plan to push to include it by default in official test262.
Requires Node 6 or above.
git clone https://github.com/tc39/test262.git --depth 1
npm install -g test262-harness
test262-harness 'test262\test\**\*.js'
Run test262-harness --help
for details on the various configuration options.
Name | Action |
---|---|
--hostType | Type of host to run tests in. See eshost's supported hosts for available options. |
--hostPath | Path to the host executable. |
--hostArgs | Any additional arguments to pass to the host when invoking it (eg. --harmony, --es6all, etc). |
-t, --threads | Run this many tests in parallel. Note that the browser runners don't work great with t > 1. |
-r, --reporter | Selects test case result format. Currently either json or simple . Default simple . |
--test262Dir | Optional. Root test262 directory and is used to locate the includes directory. |
--includesDir | Includes directory. By default inferred from test262Dir or else detected by walking upward from the first test found. |
--prelude | Path to a file to include before every test (useful for testing polyfills for example) |