grunt-functional

Run your functional tests through casperjs.

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.

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');
  1. Install CasperJS

  2. Install and configure grunt-casperjs

      casperjs: {
        files: ['test/functional/**/*.js']
      }
  3. Add your functional tests to your project's "test/functional" directory.

  4. Add the following to your configuration:

      functional_tests: {
        hostname: 'localhost',
        port: 35729,
      }
  5. Run grunt functional and your functional tests will run on the host and port specified in your configuration.

0.1.0 - Initial Release.

Copyright (c) 2012 Caige Nichols "caiges"
Licensed under the MIT license.