Enable babel for tests #4564

Merged
merged 4 commits into from Oct 12, 2016

Projects

None yet

2 participants

@danez
Member
danez commented Sep 25, 2016 edited
Q A
Bug fix? no
Breaking change? no
New feature? no
Deprecations? no
Spec compliancy? no
Tests added/pass? yes
Fixed tickets
License MIT
Doc PR

This enables babel for tests by using a mocha compiler and it uses the babel config from package.json
I transformed OptionsManager test to es2015 to see if it works

Also removed the 5s timeout from cli tests, as the default timeout is already 10s, this should probably fix the timouts on travis that we had in babylon

Also run the cli tests on travis, they were disabled if istanbul is active, but istanbul is always active on travis so we were never running this tests. If they still timeout sometimes, we might need to investigate

@danez danez added the tag: internal label Sep 25, 2016
@codecov-io
codecov-io commented Sep 25, 2016 edited

Current coverage is 88.76% (diff: 100%)

Merging #4564 into master will increase coverage by <.01%

@@             master      #4564   diff @@
==========================================
  Files           195        195          
  Lines         13774      13776     +2   
  Methods        1425       1425          
  Messages          0          0          
  Branches       3172       3173     +1   
==========================================
+ Hits          12226      12228     +2   
  Misses         1548       1548          
  Partials          0          0          

Powered by Codecov. Last update f9ccee9...70a0037

danez added some commits Sep 25, 2016
@danez danez Enable babel for tests
This enables babel for tests by using a mocha compiler
It uses the babel config from package.json
Transformed OptionsManager test to es2015 to see if it works
Removed the 5s timeout from cli tests, as the default timeout is already 10s, this should probably fix the timouts on travis that we had in babylon
Also run the cli tests on travis, they were disabled if istanbul active, but istanbul is always active on travis so we were never running this tests.
7495d37
@danez danez ignore scripts directory bf89252
@danez danez only register for tests ccbaa2e
@danez danez Set only flag correctly
70a0037
@danez danez merged commit 1dca51f into master Oct 12, 2016

5 checks passed

ci/circleci Your tests passed on CircleCI!
Details
codecov/patch Coverage not affected when comparing f9ccee9...70a0037
Details
codecov/project 88.76% (+<.01%) compared to f9ccee9
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
@danez danez deleted the tests-es2015 branch Oct 12, 2016
@panagosg7 panagosg7 added a commit to panagosg7/babel that referenced this pull request Jan 17, 2017
@danez @panagosg7 danez + panagosg7 Enable babel for tests (#4564)
* Enable babel for tests

This enables babel for tests by using a mocha compiler
It uses the babel config from package.json
Transformed OptionsManager test to es2015 to see if it works
Removed the 5s timeout from cli tests, as the default timeout is already 10s, this should probably fix the timouts on travis that we had in babylon
Also run the cli tests on travis, they were disabled if istanbul active, but istanbul is always active on travis so we were never running this tests.

* ignore scripts directory

* only register for tests

* Set only flag correctly
e8af98a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment