Gathering detailed insights and metrics for grunt-cordova-plugin-jasmine
Gathering detailed insights and metrics for grunt-cordova-plugin-jasmine
Gathering detailed insights and metrics for grunt-cordova-plugin-jasmine
Gathering detailed insights and metrics for grunt-cordova-plugin-jasmine
npm install grunt-cordova-plugin-jasmine
Typescript
Module System
Min. Node Version
NPM Version
JavaScript (94.14%)
CSS (5.86%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
Apache-2.0 License
1 Commits
1 Forks
2 Watchers
1 Branches
1 Contributors
Updated on May 07, 2014
Latest Version
0.0.11
Package Id
grunt-cordova-plugin-jasmine@0.0.11
Size
32.18 kB
NPM Version
1.4.3
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
1
4
This plugin will automatically run jasmine tests in /tests directory.
You need just three things, two files and one directory. The first file will be the package.json
that will contain
the required node dependencies. For example:
1{ 2 "name": "hello-world", 3 "version": "0.0.1", 4 "devDependencies" : { 5 "grunt" : "~0.4.2", 6 "grunt-cordova-plugin-jasmine" : "~0.0.9" 7 } 8}
Remember to change the grunt-cordova-plugin-jasmine
version to the latest one. Then you need a Gruntfile.js
,
in which you need to call grunt.loadNpmTasks('grunt-cordova-plugin-jasmine');
and then register a task, which will
run the test-cordova-plugin
task. Also you need at least target in your configuration. Example Gruntfile.js
would
look like this:
1module.exports = function (grunt) { 2 'use strict'; 3 grunt.initConfig({ 4 pkg: grunt.file.readJSON('package.json'), 5 'test-cordova-plugin': { 6 default: { 7 } 8 } 9 }); 10 11 grunt.loadNpmTasks("grunt-cordova-plugin-jasmine"); 12 grunt.registerTask('test', 'test-cordova-plugin'); 13};
Now you can call grunt test
in the directory with Gruntfile.js
to run the test-cordova-plugin
task. The last thing
to setup is directory with tests. You need to create a folder named tests
in the same directory the Gruntfile.js
is
in and then you can put javascript files into the directory. All script files will be loaded into the index.html
page
which will be tested, so you can split your tests into multiple files if you wish.
Remember that the Gruntfile.js
has to be in the root of the Cordova plugin you with to test (or check out the options
for an override).
If you wish to keep the temporary Cordova project after tests are completed, just set this option to false. In the console you can find out where is the temporary project stored.
You may want to test different location than current directory, in that case, change this option to the path the plugin is stored in.
If you want to store tests in different directory, just change this option to your desired path and you are all set.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
Found 0/1 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
branch protection not enabled on development/release branches
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