grunt-protractor-coverage
Advanced tools
Comparing version 0.2.6 to 0.2.7
{ | ||
"name": "grunt-protractor-coverage", | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"description": "Instrument your code and gather coverage data from Protractor E2E tests", | ||
@@ -5,0 +5,0 @@ "main": "Gruntfile.js", |
@@ -56,3 +56,2 @@ /* | ||
if(f.type==='Literal'){ | ||
grunt.verbose.warn(JSON.stringify(f,null,4)); | ||
if(/^\.\//.test(f.value)){ | ||
@@ -114,3 +113,3 @@ if(!/\.js$/.test(f.value)){ | ||
//list | ||
"specs", | ||
"specs","exclude", | ||
//boolean | ||
@@ -141,9 +140,10 @@ "includeStackTrace", "verbose", | ||
var specs=suppliedArgs.specs || []; | ||
var excludes=suppliedArgs.exclude || []; | ||
suppliedArgs.specs=[]; | ||
specs = specs.concat(pConfigs.config.specs || []); | ||
excludes= excludes.concat(pConfigs.config.exclude || []); | ||
excludes=grunt.file.expand(excludes); | ||
grunt.verbose.writeln("Provided specs:", specs); | ||
var files = grunt.file.expand({cwd:configDir},specs); | ||
if(!files.length){ | ||
files=grunt.file.expand({cwd:process.cwd()},specs); | ||
} | ||
grunt.verbose.writeln("Exclusions:", excludes); | ||
var files = grunt.file.expand(specs).filter(function(file){return excludes.indexOf(file)===-1;}); | ||
grunt.verbose.writeln("Expanded specs:", files); | ||
@@ -150,0 +150,0 @@ //for each spec file, wrap each method call with a closure to save the coverage object |
@@ -54,3 +54,3 @@ // A reference configuration file. | ||
], | ||
exclude: ['test/protractor/exclude2.spec.js'], | ||
// ----- Capabilities to be passed to the webdriver instance ---- | ||
@@ -57,0 +57,0 @@ // |
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
2417867
56
28094