A Grunt task for running Jasmine v1.3 tests using RequireJS and PhantomJS
A Grunt task for running Jasmine v1.3 tests using RequireJS and PhantomJS.
This plugin requires Grunt
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:
npm install grunt-jasmine-legacy --save-dev
The grunt-jasmine-legacy task:
PhantomJSReporter, which listens to events emitted by grunt-lib-phantomjs, and outputs test results to the console.
'jasmine-legacy':// Each sub-task will have a specrunner created for it// eg /tests/specrunner-myLib.htmlmyLib:options:// Location of require.config settingsamdConfigModules:'../config-amd'// Additional AMD configuration// to apply to the spec runneramdConfig:paths:someRealObject: 'someMockObject'// Location of Jasmine specs to testspecs:'tests/**/*.spec.js'// AMD modules required for all testslibs:'jasmine''jasmine-console''jasmine-html''lib/myCustomJasmineMatchers''sinon'// Files to not be included as test specsexclude:'tests/fixtures/**/*.js'// PhantomJS timeout (ms). Default is 3000timeout: 10000