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 testTo run the whole test suite, first compile the test262 runner via
cd crates/yavashark_test262/runner
go buildTo 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 rootafterwards run the suite with the runner
cd crates/yavashark_test262/
runner/yavashark_test262_runner -p rebuild --noskip # compiles the engine and runs every testIf 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 fastOn my machine this can run a subset of around 97% of the testsuite in under 10 seconds!