babel / babel-test262-runner Goto Github PK
View Code? Open in Web Editor NEWRun test262 tests on Node 0.10 using Babel 7 and `core-js@3`.
License: MIT License
Run test262 tests on Node 0.10 using Babel 7 and `core-js@3`.
License: MIT License
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.
import-assertions
feature)Look at the (raw) logs here for some more detailed info (uses transpile.js from this repo)
Maybe a --babel-path
flag which points to the monorepo? And if set it will require @babel/core
the other plugins/presets from there.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.