Added PhantomJS test execution

This patch adds test execution in the headless phantomjs runner, a
feature requested by package maintainers during the summit (for all
javascript projects, not refstack explicitly). The phantomjs
requirement has been explicitly added, as at this point there are
several upstream changes pending inside of npm that would make
this build brittle.

1- NPMv3 will no longer automatically install peerDependencies.
2- karma-phantomjs-launcher will soon gracefully degrade to a
system-installed phantomjs if it is not otherwise available.

Once both of these land we can remove the explicit reference to
PhantomJS.

Change-Id: I054792c23e1f38538800c901605a032118184925
This commit is contained in:
Michael Krotscheck 2015-06-01 11:34:33 -07:00
parent 94251d05c9
commit 240d101539
2 changed files with 4 additions and 1 deletions

View File

@ -13,6 +13,8 @@
"karma-cli": "0.0.4",
"karma-firefox-launcher": "^0.1.3",
"karma-jasmine": "^0.2.2",
"karma-phantomjs-launcher": "0.2.0",
"phantomjs": "1.9.17",
"protractor": "~1.0.0",
"shelljs": "^0.2.6",
"tmp": "0.0.23"

View File

@ -29,11 +29,12 @@ module.exports = function (config) {
frameworks: ['jasmine'],
browsers: ['Firefox'],
browsers: ['Firefox', 'PhantomJS'],
plugins: [
'karma-chrome-launcher',
'karma-firefox-launcher',
'karma-phantomjs-launcher',
'karma-jasmine'
],