0.2.0 • Published 11 years ago
grunt-functional v0.2.0
grunt-functional
Run self-hosted functional tests through casperjs.
This task will spin up your app on the host and port specified in your configuration and run your functional tests.
Getting Started
Install this grunt plugin next to your project's grunt.js gruntfile with: npm install grunt-functional
Then add this line to your project's grunt.js
gruntfile:
grunt.loadNpmTasks('grunt-functional');
Documentation
- Install CasperJS
Install and configure grunt-casperjs
casperjs: { files: ['test/functional/**/*.js'] }
Add your functional tests to your project's "test/functional" directory.
Add the following to your configuration:
functional_tests: { hostname: 'localhost', port: 35729, }
Run
grunt functional
and your functional tests will run on the host and port specified in your configuration.
Release History
0.1.0 - Initial Release.
License
Copyright (c) 2012 Caige Nichols "caiges"
Licensed under the MIT license.