Gathering detailed insights and metrics for grunt-casperjs
Gathering detailed insights and metrics for grunt-casperjs
Gathering detailed insights and metrics for grunt-casperjs
Gathering detailed insights and metrics for grunt-casperjs
grunt-casperjs-plugin
With this grunt.js task you can run tests with CasperJS, based on grunt-casperjs [https://npmjs.org/package/grunt-casperjs]
grunt-mocha-casperjs
Grunt wrapper for mocha-casperjs
grunt-casperjs-options
With this grunt.js task you can run tests with CasperJS.
@ndelangen/grunt-casperjs
With this grunt.js task you can run tests with CasperJS.
npm install grunt-casperjs
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
104 Stars
131 Commits
51 Forks
9 Watchers
1 Branches
21 Contributors
Updated on Oct 11, 2023
Latest Version
2.2.1
Package Id
grunt-casperjs@2.2.1
Size
4.70 kB
NPM Version
3.9.5
Node Version
5.3.0
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
2
1
4
With this grunt.js task you can run tests with CasperJS.
First Install CasperJS.
This plugin requires Grunt ~0.4.0
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-casperjs --save-dev
One the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
1grunt.loadNpmTasks('grunt-casperjs');
In your project's Gruntfile, add a section named casperjs
to the data object passed into grunt.initConfig()
.
1grunt.initConfig({
2 casperjs: {
3 options: {
4 // Task-specific options go here.
5 },
6 your_target: {
7 // Target-specific file lists and/or options go here.
8 }
9 }
10})
1grunt.initConfig({ 2 casperjs: { 3 options: { 4 async: { 5 parallel: false 6 }, 7 silent: false 8 }, 9 files: ['tests/casperjs/**/*.js'] 10 }, 11})
By default, tests are run in series. If your tests are independent, you can run them in parallel.
1casperjs: { 2 options: { 3 async: { 4 parallel: true 5 } 6 }, 7 files: ['tests/casperjs/**/*.js'] 8}
The task says the casper path and test file being executed (which CasperJS also
states) by default. Setting silent
to true will suppress these grunt.log
messages (does not affect CasperJs output, only the grunt.log output).
1casperjs: { 2 options: { 3 silent: true 4 }, 5 files: ['tests/casperjs/**/*.js'] 6}
CasperJS options (including user defined ones) can be passed in using 'casperjsOptions' in the options object
1casperjs: { 2 options: { 3 casperjsOptions: ['--foo=bar', '--no-colors'] 4 }, 5 files: ['tests/casperjs/**/*.js'] 6}
The install.js script is responsible for searching for existing CasperJS installations in the path. If found, as of grunt-casperjs v1.2.0, that version of CasperJS will be used. If not found, a stable version of CasperJS will be installed (under review).
grunt-casperjs was tested with the currently stable version of CasperJS, 1.1.x
If you would like to use a different version of casperjs, install it yourself globally before installing grunt-casperjs. It will use that one.
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.
1.0.3
instead of master
(to be incremented soon)No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 8/21 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- 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
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