{"_id":"grunt-cordova-plugin-jasmine","_rev":"40-108608d6096a2e22f19cf4a092131f5a","name":"grunt-cordova-plugin-jasmine","time":{"modified":"2022-06-18T14:45:34.365Z","created":"2014-04-29T13:35:38.780Z","0.0.1":"2014-04-29T13:35:38.780Z","0.0.2":"2014-04-29T13:45:36.018Z","0.0.3":"2014-04-29T13:49:38.436Z","0.0.5":"2014-05-06T11:30:09.827Z","0.0.6":"2014-05-06T13:39:09.172Z","0.0.7":"2014-05-06T14:13:10.255Z","0.0.8":"2014-05-06T14:26:24.350Z","0.0.9":"2014-05-06T14:29:56.165Z","0.0.10":"2014-05-07T11:57:20.363Z","0.0.4":"2014-05-12T13:57:14.932Z","0.0.11":"2014-05-12T13:58:05.572Z"},"maintainers":[{"name":"tadeaskriz","email":"tadeas.kriz@gmail.com"}],"dist-tags":{"latest":"0.0.11"},"description":"Runs jasmine tests of a specified Apache Cordova plugin.","readme":"# Grunt Cordova Plugin test runner for Jasmine\n\nThis plugin will automatically run jasmine tests in /tests directory.\n\n## How to use\n\nYou need just three things, two files and one directory. The first file will be the `package.json` that will contain\nthe required node dependencies. For example:\n\n```java\n{\n    \"name\": \"hello-world\",\n    \"version\": \"0.0.1\",\n    \"devDependencies\" : {\n        \"grunt\" : \"~0.4.2\",\n        \"grunt-cordova-plugin-jasmine\" : \"~0.0.9\"\n    }\n}\n```\n\nRemember to change the `grunt-cordova-plugin-jasmine` version to the latest one. Then you need a `Gruntfile.js`,\nin which you need to call `grunt.loadNpmTasks('grunt-cordova-plugin-jasmine');` and then register a task, which will\nrun the `test-cordova-plugin` task. Also you need at least target in your configuration. Example `Gruntfile.js` would\nlook like this:\n\n```java\nmodule.exports = function (grunt) {\n    'use strict';\n    grunt.initConfig({\n        pkg: grunt.file.readJSON('package.json'),\n        'test-cordova-plugin': {\n            default: {\n            }\n        }\n    });\n\n    grunt.loadNpmTasks(\"grunt-cordova-plugin-jasmine\");\n    grunt.registerTask('test', 'test-cordova-plugin');\n};\n```\n\nNow you can call `grunt test` in the directory with `Gruntfile.js` to run the `test-cordova-plugin` task. The last thing\nto setup is directory with tests. You need to create a folder named `tests` in the same directory the `Gruntfile.js` is\nin and then you can put javascript files into the directory. All script files will be loaded into the `index.html` page\nwhich will be tested, so you can split your tests into multiple files if you wish.\n\nRemember that the `Gruntfile.js` has to be in the root of the Cordova plugin you with to test (or check out the options\nfor an override).\n\n## Options\n\n### deleteTemp\n#### default: true\n\nIf you wish to keep the temporary Cordova project after tests are completed, just set this option to false. In the\nconsole you can find out where is the temporary project stored.\n\n### pluginDir\n#### default: current working directory\n\nYou may want to test different location than current directory, in that case, change this option to the path the plugin\nis stored in.\n\n### testsDir\n#### default: ./tests\n\nIf you want to store tests in different directory, just change this option to your desired path and you are all set.","versions":{"0.0.11":{"name":"grunt-cordova-plugin-jasmine","description":"Runs jasmine tests of a specified Apache Cordova plugin.","version":"0.0.11","homepage":"https://github.com/TadeasKriz/grunt-cordova-plugin-jasmine","author":{"name":"Tadeas Kriz","email":"tadeas.kriz@gmail.com"},"repository":{"type":"git","url":"https://github.com/TadeasKriz/grunt-cordova-plugin-jasmine"},"bugs":{"url":"https://github.com/TadeasKriz/grunt-cordova-plugin-jasmine/issues"},"licenses":[{"type":"Apache-2.0","url":"https://github.com/TadeasKriz/grunt-cordova-plugin-jasmine/blob/master/LICENSE-Apache-2.0"}],"engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"dependencies":{"cordova":"~3.4.1","temp":"~0.7.0","q-io":"~1.11.0","phantomjs":"~1.9.7-4","node-phantom":"~0.2.5","q":"~1.0.1"},"devDependencies":{"grunt-contrib-jshint":"^0.9.2","grunt-contrib-clean":"^0.5.0","grunt-contrib-nodeunit":"^0.3.3","grunt":"~0.4.4"},"peerDependencies":{"grunt":"~0.4.4"},"keywords":["gruntplugin"],"_id":"grunt-cordova-plugin-jasmine@0.0.11","dist":{"shasum":"3565b7c6f863bff702bc4e768957ea6bbcfca8fa","tarball":"https://registry.npmjs.org/grunt-cordova-plugin-jasmine/-/grunt-cordova-plugin-jasmine-0.0.11.tgz","integrity":"sha512-2tvoXs+6lt0Yj5TycH1SbbZUhMODh/mVHVIwO8NVsRdookl87WhljDcYd6nKeSLjik1sJgBUPm5PA/HSVCFBrw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCd8KwQI4utxOsuUW/py9vqif1XkCq56XTXzNW1DA8G6QIhAO7+lgxc/FQD5MDPWND+YrYIU9a82NS+UtVhQrApWDVS"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"tadeaskriz","email":"tadeas.kriz@gmail.com"},"maintainers":[{"name":"tadeaskriz","email":"tadeas.kriz@gmail.com"}]}},"homepage":"https://github.com/TadeasKriz/grunt-cordova-plugin-jasmine","keywords":["gruntplugin"],"repository":{"type":"git","url":"https://github.com/TadeasKriz/grunt-cordova-plugin-jasmine"},"author":{"name":"Tadeas Kriz","email":"tadeas.kriz@gmail.com"},"bugs":{"url":"https://github.com/TadeasKriz/grunt-cordova-plugin-jasmine/issues"},"readmeFilename":"README.md"}