Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 1 KB

CONTRIBUTING.md

File metadata and controls

38 lines (27 loc) · 1 KB

Running test262

To run a standalone test262 test, you can use the yavashark_test262 binary.

cd crates/yavashark_test262
cargo r <path/to/test.js> # for running a single test

To run the whole test suite, first compile the test262 runner via

cd crates/yavashark_test262/runner
go build

To then run the testsuite, checkout the test262 repository in the repo root, so yavashark/test262 or change the default test262 path

git clone https://github.com/tc39/test262 # from the repository root

afterwards run the suite with the runner

cd crates/yavashark_test262/
runner/yavashark_test262_runner -p rebuild --noskip # compiles the engine and runs every test

If you wish to run a faster version, use the fast profile, though make sure to have run cargo b -r -p yavashark_test262 before

cd crates/yavashark_test262/
cargo b -r
runner/yavashark_test262_runner -p fast

On my machine this can run a subset of around 97% of the testsuite in under 10 seconds!