Giter Club home page Giter Club logo

babel-test262-runner's Introduction

Babel Test262

NOTE: Only linux64 and darwin64 are currently supported.

Run test262 tests on Node 0.10 using Babel 7 and core-js@3.

Installation

git clone [url of this repo] --recursive --shallow-submodules
cd babel-test262-runner
node lib/download-node

Run tests

node lib/run-tests [pattern]

[pattern] must be a substring of the path of the tests to run. For example:

node lib/run-tests arrow-function

If you want to run all the tests, run

node lib/run-tests I_AM_SURE

If you want to run against a local copy of babel repo (useful for debugging):

BABEL_PATH=../babel node lib/run-tests [pattern]

Download babel/babel master test262 artifact

node lib/download-master-artifact <optional file path>

Compare results with master

node lib/compare-results <master artifact path> <pr artifact path>

babel-test262-runner's People

Contributors

canadahonk avatar dependabot[bot] avatar jbhoosreddy avatar jlhwung avatar liuxingbaoyu avatar nicolo-ribaudo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

babel-test262-runner's Issues

Run all the tests

We have never done this ๐Ÿ˜›

The problem is that on my laptop (i7-8750H, 6 physical cores and 12 virtual cores, 16gb of ram) it runs 1000 tests in about 1 minute, and it heats up to 97 ยฐC.
There are about ~70k tests, so they need to be run on a more powerful machine.

Another option is to check if they can be optimized better, but unless we get a 10x speed improvement we don't fully solve the problem.

Make the output more usable

Currently the output is just a list like this:

PASS test/language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-ary-rest-iter.js strict mode (success) - 332/622
PASS test/language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-ary-rest-init.js default (success) - 333/622
PASS test/language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-ary-rest-iter.js default (success) - 334/622
PASS test/language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-id-init-exhausted.js default (success) - 335/646
FAIL test/language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-id-init-fn-name-cover.js strict mode (expected success, got runtime error) - 336/646
FAIL test/language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-id-init-fn-name-cover.js default (expected success, got runtime error) - 337/646
FAIL test/language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-id-init-fn-name-class.js default (expected success, got runtime error) - 338/646
FAIL test/language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-id-init-fn-name-class.js strict mode (expected success, got runtime error) - 339/646
FAIL test/language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-id-init-fn-name-arrow.js default (expected success, got runtime error) - 340/646
PASS test/language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-id-init-exhausted.js strict mode (success) - 341/646
FAIL test/language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-id-init-fn-name-arrow.js strict mode (expected success, got runtime error) - 342/646
FAIL test/language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-id-init-fn-name-gen.js strict mode (expected success, got runtime error) - 343/646
FAIL test/language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-id-init-fn-name-fn.js default (expected success, got runtime error) - 344/646
FAIL test/language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-id-init-fn-name-fn.js strict mode (expected success, got runtime error) - 345/646
FAIL test/language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-id-init-fn-name-gen.js default (expected success, got runtime error) - 346/646
PASS test/language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-id-init-hole.js default (success) - 347/646
PASS test/language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-id-init-unresolvable.js default (success) - 348/646
PASS test/language/expressions/arrow-function/dstr/dflt-ary-ptrn-elem-id-init-throws.js strict mode (success) - 349/646

While it's ok if it needs to be read by machines, this Test262 runner is primarly meant for people who whant to check if Babel is compliant in some features or are looking for possible PRs.

Ideally it should generate an HTML file where users can expand different sections and it shows percentages for each section.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.