Run your functional tests through casperjs.
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.
Install and configure grunt-casperjs with:
npm install grunt-casperjscasperjs:files: 'test/functional/**/*.js'
Install and configure grunt-functional with:
npm install grunt-functionalgruntloadNpmTasks'grunt-functional';
Add your functional tests to your project's "test/functional" directory.
Add the following to your configuration:server:base: 'app'functional_tests:hostname: 'localhost'port: 35729
grunt functionaland your functional tests will run on the host and port specified in your configuration.
- 0.2.0 - Fixed grunt/yeoman compatibility. Yeoman is using an alpha version of grunt which expected Gruntfile.js. Added a server provider that doesn't depend on Yeoman.
- 0.1.1 - Initial Release.
Copyright (c) 2012 Caige Nichols "caiges"
Licensed under the MIT license.