0.3.0 • Published 10 years ago

grunt-huxley v0.3.0

Weekly downloads
36
License
-
Repository
github
Last release
10 years ago

Grunt-huxley

Grunt task runner for node-huxley.

  • Records your actions as you browse.
  • Takes screenshots.
  • Compares new screenshots against the old ones and checks for differences.

Installation

npm install grunt-huxley

Selenium Server is used to automate the recorded browser actions. Don't have it yet? Try the node wrapper.

API

If you're already familiar with node-huxley, the API is basically the same: https://github.com/chenglou/node-huxley/wiki/API.

Difference with the official API: instead of globs, you can pass them as the standard grunt src. There's also the action key (one of writeScreenshots, recordTasks, compareScreenshots and defaultWorkflow).

Examples

module.exports = function(grunt) {
  grunt.initConfig({
    huxley: {
      all: {
        options: {
          action: 'defaultWorkflow'
        },
        src: [
          './folder1/Huxleyfile.json',
          '/folder2WithNestedFolders/**/*Huxleyfile.json'
        ]
      }
    }
  });

  grunt.loadNpmTasks('grunt-huxley');
  grunt.registerTask('default', ['huxley:all']);
};
0.3.0

10 years ago

0.2.5

10 years ago

0.2.4

10 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.0

11 years ago