bocoup / test262-harness

Experimental harness for test262

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Test262-Harness

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.

Quick Start

  1. git clone https://github.com/tc39/test262.git --depth 1
  2. npm install -g test262-harness
  3. test262-harness 'test262\test\**\*.js'

Run test262-harness --help for details on the various configuration options.

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)

About

Experimental harness for test262

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:JavaScript 100.0%