updated browser configs so opening browsers on all platforms should be a bit better supported, added a ping that notifies the server when the tests started, fixed a 'globalLeak', removed the test-output from the repo

This commit is contained in:
Spencer Alger
2013-11-13 12:57:41 -07:00
parent a5cac7aee2
commit 5106577312
6 changed files with 35 additions and 12690 deletions

View File

@ -43,6 +43,7 @@
runner.on('suite', function (suite) {
if (suite.root) {
$.post('/tests-started');
return;
}
@ -134,7 +135,7 @@
});
function allTestsDone() {
window.testResults = {
var testResults = {
stats: stats,
suites: $.map(rootSuite.suites, function removeElements(suite) {
var s = {
@ -152,7 +153,8 @@
return s;
})
};
$.post('/tests-complete', JSON.stringify(window.testResults), function () {
$.post('/tests-complete', JSON.stringify(testResults), function () {
// alert('test complete');
window.close();
});

View File

@ -138,8 +138,8 @@ function collectTestResults(req, resp) {
_.each(suiteInfo.suites, serializeSuite);
}
suite.ele('system-out', {}, suiteInfo.stdout);
suite.ele('system-err', {}, suiteInfo.stderr);
suite.ele('system-out', {}).cdata(suiteInfo.stdout);
suite.ele('system-err', {}).cdata(suiteInfo.stderr);
});
var filename = path.join(__dirname, 'test-output.xml');
@ -185,6 +185,9 @@ var server = http.createServer(function (req, resp) {
middleware.push(function (req, resp, next) {
// resolve filenames
switch (req.uri) {
case '/tests-started':
resp.end('OK');
return;
case '/tests-complete':
return collectTestResults(req, resp);
case '/expect.js':

File diff suppressed because it is too large Load Diff