grunt-protractor-coverage
Advanced tools
Comparing version 0.2.3 to 0.2.4
{ | ||
"name": "grunt-protractor-coverage", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "Instrument your code and gather coverage data from Protractor E2E tests", | ||
@@ -25,6 +25,7 @@ "main": "Gruntfile.js", | ||
"devDependencies": { | ||
"grunt": "~0.4.4", | ||
"grunt-cli": "~0.1.11", | ||
"grunt-contrib-jshint": "~0.1.0", | ||
"grunt-contrib-clean": "~0.4.0a", | ||
"grunt-contrib-nodeunit": "~0.1.0", | ||
"grunt": "~0.4.0rc2", | ||
"grunt-contrib-copy": "~0.5.0" | ||
@@ -31,0 +32,0 @@ }, |
@@ -20,3 +20,14 @@ /* | ||
var escodegen=require('escodegen'); | ||
Array.prototype.unique = function() { | ||
var a = [], l = this.length; | ||
for(var i=0; i<l; i++) { | ||
for(var j=i+1; j<l; j++){ | ||
if (this[i] === this[j]){ | ||
j = ++i; | ||
} | ||
} | ||
a.push(this[i]); | ||
} | ||
return a; | ||
}; | ||
module.exports = function(grunt) { | ||
@@ -138,5 +149,8 @@ | ||
}); | ||
args = args.concat(dargs(suppliedArgs, { | ||
joinLists: true | ||
})); | ||
args = args | ||
.concat(dargs(suppliedArgs, { | ||
joinLists: true | ||
})) | ||
.concat(grunt.option.flags()) | ||
.unique(); | ||
@@ -143,0 +157,0 @@ grunt.verbose.writeln("Specs: \n\t" + suppliedArgs.specs.join("\n\t")); |
@@ -39,4 +39,4 @@ // A reference configuration file. | ||
// connect to an already running instance of selenium. This usually looks like | ||
seleniumAddress: 'http://localhost:4444/wd/hub', | ||
// seleniumAddress: 'http://ondemand.saucelabs.com/wd/hub', | ||
// seleniumAddress: 'http://localhost:4444/wd/hub', | ||
seleniumAddress: 'http://ondemand.saucelabs.com/wd/hub', | ||
// If sauceUser and sauceKey are specified, seleniumServerJar will be ignored. | ||
@@ -64,7 +64,10 @@ // The tests will be run remotely using SauceLabs. | ||
capabilities: { | ||
// 'username': 'fasterness', | ||
// 'accessKey':'128690e9-57c0-485c-9728-464a08acbf69', | ||
'username': process.env['SAUCE_USERNAME'], | ||
'accessKey':process.env['SAUCE_ACCESS_KEY'], | ||
'browserName': 'chrome', | ||
// 'browserName': 'firefox' | ||
// 'browserName': 'phantomjs' | ||
'build': process.env['TRAVIS_BUILD_NUMBER'], | ||
'tags': ['CI'], | ||
'tunnel-identifier': process.env['TRAVIS_JOB_NUMBER'], | ||
}, | ||
@@ -71,0 +74,0 @@ params: { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28067
4207527
6
57