Get ES6 unit tests and coverage running #8199
Merged
+82
−163
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For MVP ES6 support, we're going to run in ES6-aware browsers only, so no IE. Chrome and Firefox works great (and I suspect Safari as well).
We can definitely look into transpiling back to ES5 in a future update, but I'm more worried about overall ES6 support right now.
This loses the ability to run tests against the release build, but I plan on hopefully putting that back in before everything merges up to master.
There are a couple of test failures, but those will get looked into separately than the actual test running mechanism itself.
Runs via node/CI and in the browser (which I honestly didn't think we could keep going).
Switch to
karma-coverage-istanbul-instrumenter
for instrumentation since we need it for native es6 supportGenerate an ES6 version of SpecList.js and update spec-main.js to use it.
Change to karma-conf.js to treat specs as ES6
Fix up some paths/specs to actually work.
Just run the tests as normal to make sure stuff works.
This is targeted to
es6-viewer
but I'll retarget if that gets merged first.CC @hpinkos