Skip to content

Commit f1cc7ac

Browse files
author
James Halliday
committed
fixing test runner
1 parent e006202 commit f1cc7ac

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

test/solutions.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ var names = require('../menu.json').filter(function (name) {
88
return !/^!/.test(name)
99
});
1010

11+
var args = process.argv.slice(2);
12+
if (args) names = args;
13+
1114
var dirs = names.map(function (name) {
1215
return path.join(
1316
__dirname, '../solutions',
@@ -42,17 +45,19 @@ var customBuild = {
4245
var customRun = {
4346
'BUILD A WIDGET': function (t) {
4447
setTimeout(function () {
45-
var ps = spawn('xvfb-run', [
46-
'-a', 'chromium-browser', 'http://localhost:55500'
48+
var ps = spawn('chromium-browser', [
49+
'http://localhost:55500'
4750
]);
4851
t.on('end', function () { ps.kill('SIGKILL') });
4952
}, 1000);
5053
},
5154
'WIDGET WITH ASSETS': function (t) {
5255
setTimeout(function () {
53-
var ps = spawn('xvfb-run', [
54-
'-a', 'chromium-browser', 'http://localhost:55500'
56+
var ps = spawn('chromium-browser', [
57+
'http://localhost:55500'
5558
]);
59+
ps.stdout.pipe(process.stderr);
60+
ps.stderr.pipe(process.stderr);
5661
t.on('end', function () { ps.kill('SIGKILL') });
5762
}, 1000);
5863
}

0 commit comments

Comments
 (0)