}, function (error) { console.log(error); console.log("reasons = %j", Q.getUnhandledReasons()); });
var httpServerFixturesPort = 8888; var httpServerAssessmentPagesPort = 9999; var mochaRunner, webdriver, _client, assessmentsPromise, httpServerFixtures, httpServerAssessmentPages; // Set up test command execution arguments. var execOptions = stdio.getopt({ assessment: { key: 'I', args: 1, description: 'A single assessment to run.' } }); Q.getUnhandledReasons(function (err) { console.error('Caught unhandled reason: ' + err); }); /** * Closes the HTTP servers and exits the process. */ function shutdownTestRunner (err) { if (httpServerFixtures) { httpServerFixtures.close(); } if (httpServerAssessmentPages) { httpServerAssessmentPages.close(); } if (_client && _client.end) { _client.end(); }