-
Notifications
You must be signed in to change notification settings - Fork 583
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor/reorg test driver to resurect browser testing. #1868
Conversation
Tests run but the mocha progress bar over-writes itself until the feature tests also converted to ES6 (in progress). Add MochaDepencencies.js for platform probing Refactor TraceurTestRunner to glob asynchonously Refactor TraceurTestRunner -> BrowserTestRunner, NodeTestRunner Add node-only: to exclude node-specific tests. (Formerly just not included in testRunner.html). Tweek ModuleStore error message to add URL. Reorg unit test classes to run() in the endpoint so error messages are easier to place.
server.on('error', function(e) { | ||
console.log('Port ' + port + ' did not work out'); | ||
console.log('Port ' + port + ' did not work out'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe console.error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Very nice. Looking forward to run the test with a real debugger again. |
PTAL |
var express = require('express'); | ||
var http = require('http'); | ||
var serveIndex = require('serve-index'); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need a copyright header?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
PTAL |
unitTestRunner.run().then( | ||
(failures) => { | ||
process.exit(failures); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong indentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed it.
LGTM |
Relies on
demo/expressServer.js
to expand the test list into alist of files using the same functions called by the node test driver.
This dependency cost is balanced by no longer having to manually
ensure the tests are added to
testRunner.html
Status: Tests run but the mocha progress bar over-writes itself
until the feature tests also converted to ES6 (in progress).
Add MochaDepencencies.js for platform probing.
Refactor TraceurTestRunner to glob asynchronously.
Refactor TraceurTestRunner -> BrowserTestRunner, NodeTestRunner.
Add "node-only:" prefix to
suite()
titles to exclude node-specific tests.(Formerly just not included in testRunner.html).
Tweek ModuleStore error message to add URL.
Reorg unit test classes to run() in the endpoint so error messages are
easier to place.