Skip to content

Commit

Permalink
[CLEANUP beta] emberjs#16391 Cleaning up the test output
Browse files Browse the repository at this point in the history
  • Loading branch information
lukecoy committed Apr 6, 2018
1 parent 3f901df commit 1fe0a05
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions bin/run-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ var path = require('path');
var finalhandler = require('finalhandler');
var http = require('http');
var serveStatic = require('serve-static');
var puppeteer = require('puppeteer');

// Serve up public/ftp folder.
var serve = serveStatic('./dist/', { index: ['index.html', 'index.htm'] });
Expand All @@ -28,6 +29,9 @@ var PORT = 13141;
// Listen.
server.listen(PORT);

// Create Chrome browser instance.
var browserPromise = puppeteer.launch();

function run(queryString) {
return new RSVP.Promise(function(resolve, reject) {
var url = 'http://localhost:' + PORT + '/tests/?' + queryString;
Expand All @@ -40,9 +44,7 @@ function runInBrowser(url, retries, resolve, reject) {

console.log('Running Chrome headless: ' + url);

var puppeteer = require('puppeteer');

puppeteer.launch().then(function(browser) {
browserPromise.then(function(browser) {
browser.newPage().then(function(page) {
/* globals window */
var crashed;
Expand Down

0 comments on commit 1fe0a05

Please sign in to comment.