Gathering detailed insights and metrics for grunt-mocha-protractor
Gathering detailed insights and metrics for grunt-mocha-protractor
Gathering detailed insights and metrics for grunt-mocha-protractor
Gathering detailed insights and metrics for grunt-mocha-protractor
npm install grunt-mocha-protractor
Typescript
Module System
NPM Version
JavaScript (99.46%)
CSS (0.54%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
6 Stars
58 Commits
3 Forks
6 Watchers
1 Branches
2 Contributors
Updated on Oct 05, 2015
Latest Version
0.5.2
Package Id
grunt-mocha-protractor@0.5.2
Size
36.00 kB
NPM Version
1.3.21
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
3
1
4
Run e2e angular tests with webdriver.
This plugin requires Grunt ~0.4.1
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
1npm install grunt-mocha-protractor --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
1grunt.loadNpmTasks('grunt-mocha-protractor');
Currently you will need to have the Selenium Server running in the default location on localhost.
In your project's Gruntfile, add a section named mochaProtractor
to the data object passed into grunt.initConfig()
.
1grunt.initConfig({ 2 mochaProtractor: { 3 options: { 4 browsers: ['Chrome', 'Firefox'] 5 }, 6 files: ['test/*.js'] 7 }, 8})
The usual Mocha options are passed through this task to the new Mocha instance.
Type: Array
Default value: ['Chrome']
List of browsers to test with.
To test with SauceLabs the browser can also be specified as an object.
1grunt.initConfig({ 2 mochaProtractor: { 3 options: { 4 reporter: 'Spec', 5 browsers: [{ 6 base: 'SauceLabs', 7 browserName: 'Firefox', 8 platform: 'Windows 7', 9 version: '23' 10 }] 11 }, 12 files: ['test/*.js'] 13 },
Type: String
Default value: Spec
Mocha reporter to use
Type: String
Default value: ``
Type: Array
Default value: null
Example of full config
1grunt.initConfig({
2 mochaProtractor: {
3 options: {
4 browsers: ['Chrome', 'Firefox'],
5 reporter: 'Spec',
6 baseUrl: 'https://develop.mywebsite.local',
7 args: '--ignore-certificate-errors',
8 timeout: 10000, // in milliseconds
9 suiteTimeout: 90000 // in milliseconds
10 },
11 files: ['test/*.js']
12 },
13})
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 1/25 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More