Official ECMAScript Conformance Test Suite
Go to file
Frank Yung-Fong Tang 54ef0b1bf4 Fix expectation of "compact" notation 2021-12-02 09:45:59 -05:00
.circleci Update config.yml 2020-08-20 12:37:05 -04:00
docs
harness Tests for string shorthand API in round() and total() 2021-11-16 17:06:06 -05:00
implementation-contributed chore: migrate $ERROR -> throw new Test262Error in test/intl402 (#3094) 2021-07-21 13:36:32 -07:00
src Update eval-script-code-host-resolves-module-code.case 2021-10-22 09:00:00 -04:00
test Fix expectation of "compact" notation 2021-12-02 09:45:59 -05:00
tools tools: enforce restriction on YAML 2021-09-07 17:41:36 -04:00
.editorconfig
.gitattributes
.gitignore
.hgignore
.jshintrc chore: migrate $ERROR -> throw new Test262Error in .jshintrc, harness/sta.js (#3122) 2021-07-29 12:38:45 -07:00
.npmrc
CODE_OF_CONDUCT.md
CONTRIBUTING.md Mention raw flag in test environment section (#3317) 2021-11-19 14:12:59 -05:00
ECMA TR-104.pdf
INTERPRETING.md Update project structure to support non-JS files 2021-05-28 20:02:59 -04:00
LICENSE Whitespace cleanups. CRLF => LF 2019-10-08 20:44:09 -04:00
README.md fix link to branch `preserved-website-directory` (#2715) 2020-07-30 15:41:24 -07:00
excludelist.xml
features.txt Add reference for feature flag (#3297) 2021-11-04 12:03:33 -07:00
github-deploy-key.enc
lint.exceptions Fix lint.exceptions, I hope? 2020-03-02 13:38:35 -05:00
make.py Rename usage of master to main 2020-07-15 15:47:15 -04:00
package.json Update project structure to support non-JS files 2021-05-28 20:02:59 -04:00

README.md

Test262: ECMAScript Test Suite (ECMA TR/104)

Test262 is the implementation conformance test suite for the latest drafts (or most recent published edition) of the following Ecma specifications:

Test262 itself is described in ECMA TR/104 and is included in ECMA-414 (pdf).

Goals & State of Test262

The goal of Test262 is to provide test material that covers every observable behavior specified in the ECMA-414 Standards Suite. Development of Test262 is an on-going process. As of October 2017, Test262 consisted of over 29272 individual test files covering the majority of the pseudo-code algorithms and grammar productions defined in the ECMA-414 Standards Suite. Each of these files contains one or more distinct test cases. This marks the most comprehensive ECMAScript test suite to date. While test coverage is broad, TC39 does not consider coverage to be complete and as with any software project there exists the possibility of omissions and errors. This project welcomes any contributions to Test262 that help make test coverage of existing features more comprehensive.

ECMAScript feature proposals

As defined in the TC39 Process, Stage 4 Entrance Criteria requires tests for new feature proposals to advance. Tests may be written by proposal champions, implementers, or any interested community member.

A proposal champion is someone that worked on the feature proposal and specification directly.

An implementer is someone that works on implementing the proposal into a JavaScript engine, parser, runtime or embedding.

A community member is you, and we welcome you to contribute! If you're having trouble getting started, or even just want to ask a question, feel free to open an issue.

Contributing to Test262

Guidance for contributing to Test262 can be found in CONTRIBUTING.md.

Authors of contributions from non-Ecma member organizations must sign the Test262 CLA

Running Test262

Guidance for running Test262 and explanations of how a test file is interpreted by a test runner is in INTERPRETING

Test262 Runners & Harnesses

Volunteer-maintained projects that may be used to execute Test262 in various ECMAScript hosts:

How To Read CI Results

Test262 runs CI tests against every PR and commit. The only tests that are required to pass are visibly flagged as REQUIRED. The CI test results that are attributed to specific runs against specific engines should not be perceived as meaningful to anyone but the person that is reviewing the test material contained within the contributed changeset. These tests are almost always expected to fail, especially in the case of tests for new features. They may be helpful in determining whether or not a regression occurred, but that can only be determined by an actual human reviewing the results and comparing those outcomes to the expected outcomes of the tests.

Where did website/ go?

It's been removed. If you need to access the code that contained in that directory, we've preserved it in a branch, available here.