Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Run tc39/test262 against Babel #4987
The idea is to run tc39/test262 tests suite against Babel.
This issue will be used to track this.
I think we should use our own test runner. We might want to skip some tests.
There are some restriction in order to run the tests. They are well explained in https://github.com/tc39/test262/blob/master/INTERPRETING.md#test-execution.
The tests could be run automaticly on the CI (they are taking some time).
My test is available here: https://github.com/xtuc/babel-test262.
Some observations I made:
I did this couple months ago when testing Babili. Here's my script to run from within chakra-core repo — https://gist.github.com/kangax/d4e96384bdce3528d41808ae1843df14
Here's one of the issues I filed back then — #4756
The project now allows to run tests with given Babel transformations (for convienience I choose to use babel-preset-env).
I wanted it to be as simple and flexible as possible. See the README to see its usage.
I used an environement variable to configure the target browser.
TARGET_BROWSERS="last 200 versions"
Please tell me if this make sense to you and/or way to improve it.
Example build job: https://travis-ci.org/xtuc/babel-test262/builds/184788391.