All Projects → linusg → libjs-test262

linusg / libjs-test262

Licence: MIT license
✅ Tools for running the test262 ECMAScript test suite with SerenityOS's JavaScript engine (LibJS)

Programming Languages

python
139335 projects - #7 most used programming language
C++
36643 projects - #6 most used programming language
CMake
9771 projects
shell
77523 projects

Projects that are alternatives of or similar to libjs-test262

vscode-testcafe
This extension allows you to run TestCafe tests directly from VS Code
Stars: ✭ 48 (+140%)
Mutual labels:  test-runner
laravel-test-watcher
Laravel Test Watcher
Stars: ✭ 20 (+0%)
Mutual labels:  test-runner
IO-TESTER
A functional test framework
Stars: ✭ 32 (+60%)
Mutual labels:  test-runner
elk
A low footprint JavaScript engine for embedded systems
Stars: ✭ 1,458 (+7190%)
Mutual labels:  javascript-engine
test junkie
Highly configurable testing framework for Python
Stars: ✭ 72 (+260%)
Mutual labels:  test-runner
quasar-testing
Testing Harness App Extensions for the Quasar Framework 1.0+
Stars: ✭ 142 (+610%)
Mutual labels:  test-runner
tester-jest
Tester Jest is a tester provider for the Atom Tester.
Stars: ✭ 21 (+5%)
Mutual labels:  test-runner
rna
🚀 A bundler, a server and a test runner for modern modules and applications.
Stars: ✭ 89 (+345%)
Mutual labels:  test-runner
pyduktape
Embed the Duktape JS interpreter in Python
Stars: ✭ 77 (+285%)
Mutual labels:  javascript-engine
jest-electron-runner
Jest TestRunner to run tests in Electron environment
Stars: ✭ 49 (+145%)
Mutual labels:  test-runner
tester
Test runner for the Atom Editor.
Stars: ✭ 38 (+90%)
Mutual labels:  test-runner
quickjs-build
Build for QuickJS JavaScript Engine
Stars: ✭ 25 (+25%)
Mutual labels:  javascript-engine
sunshine
Sunshine allows you to manage suits of your automated tests directly from Java code.
Stars: ✭ 12 (-40%)
Mutual labels:  test-runner
marathon
Cross-platform test runner written for Android and iOS projects
Stars: ✭ 398 (+1890%)
Mutual labels:  test-runner
yantra
JavaScript Engine for .NET Standard
Stars: ✭ 32 (+60%)
Mutual labels:  javascript-engine
elm-doctest
doctest runner against Elm-lang source files
Stars: ✭ 13 (-35%)
Mutual labels:  test-runner
ctest
A simple portable C test runner
Stars: ✭ 17 (-15%)
Mutual labels:  test-runner
nashorn
A fork of Oracle's EcmaScript 5.1 engine Nashorn, compatible with Java 7
Stars: ✭ 29 (+45%)
Mutual labels:  javascript-engine
DuktapeJava
Tiny Powerfull JavaScript Engine On Android Platform integrating with java
Stars: ✭ 74 (+270%)
Mutual labels:  javascript-engine
oletus
Minimal ECMAScript Module test runner
Stars: ✭ 43 (+115%)
Mutual labels:  test-runner

LibJS test262

Run the Official ECMAScript Conformance Test Suite with SerenityOS's LibJS

Installation

Install git, cmake, ninja, gcc/clang and python3 (3.9+).

To install the script's dependencies, run:

pip3 install -r requirements.txt

Dependencies are:

  • tqdm for displaying a progress bar

Usage

To clone test262, clone SerenityOS, build Lagom, and build libjs-test262-runner, run:

./setup.sh

The repositories will only be cloned if they don't exist yet locally, so you can use this script for development of the test runner as well.

If SERENITY_SOURCE_DIR is set, it will be used instead. However, if the Lagom build directory already exists, the script will not touch your build in that case, so you'll need to build libLagom.a yourself.

Once that's done, run:

python3 main.py --libjs-test262-runner ./Build/libjs-test262-runner --test262-root ./test262/

Options

usage: main.py [-h] [-j PATH] [-b] [-t PATH] [-p PATTERN] [-c CONCURRENCY] [--timeout TIMEOUT] [--memory-limit MEMORY_LIMIT] [--json] [--per-file PATH] [-s | -v] [-f] [--parse-only] [--ignore IGNORE] [--forward-stderr] [--summary]

Run the test262 ECMAScript test suite with SerenityOS's LibJS

optional arguments:
  -h, --help            show this help message and exit
  -j PATH, --libjs-test262-runner PATH
                        path to the 'libjs-test262-runner' binary
  -b, --use-bytecode    Use the bytecode interpreter to run the tests
  -t PATH, --test262-root PATH
                        path to the 'test262' directory
  -p PATTERN, --pattern PATTERN
                        glob pattern used for test file searching (defaults to test/**/*.js)
  -c CONCURRENCY, --concurrency CONCURRENCY
                        number of concurrent workers (defaults to number of CPU cores)
  --timeout TIMEOUT     timeout for each test run in seconds (defaults to 10)
  --memory-limit MEMORY_LIMIT
                        memory limit for each test run in megabytes (defaults to 512)
  --json                print the test results as JSON
  --per-file PATH       output per-file results to file
  -s, --silent          don't print any progress information
  -v, --verbose         print output of test runs
  -f, --fail-only       only show failed tests
  --parse-only          only parse the test files and fail/pass based on that
  --ignore IGNORE       ignore any tests matching the glob
  --forward-stderr      forward all stderr output to the stderr of the script
  --summary             only show the top level results

Current status

Most of the tests run to completion and yield correct results. Few of the test harness files do not parse yet or generate runtime errors, those are listed in the results under a separate category, as are tests that fail to parse their metadata, time out, or crash the engine (todo assertion failures, mostly).

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].