diff --git a/test/test.js b/test/test.js index b58c65b..10d6d56 100755 --- a/test/test.js +++ b/test/test.js @@ -23,7 +23,10 @@ describe('Application life cycle test', function () { this.timeout(0); var server, browser = new require('selenium-webdriver/firefox').Driver(); - before(function () { + before(function (done) { + if (!process.env.USERNAME) return done(new Error('USERNAME env var not set')); + if (!process.env.PASSWORD) return done(new Error('PASSWORD env var not set')); + var seleniumJar= require('selenium-server-standalone-jar'); var SeleniumServer = require('selenium-webdriver/remote').SeleniumServer; server = new SeleniumServer(seleniumJar.path, { port: 4444 });