Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chenglou/grunt-huxley
Grunt task for node-huxley.
https://github.com/chenglou/grunt-huxley
Last synced: 17 days ago
JSON representation
Grunt task for node-huxley.
- Host: GitHub
- URL: https://github.com/chenglou/grunt-huxley
- Owner: chenglou
- License: mit
- Created: 2013-10-08T07:12:01.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-08-25T02:11:23.000Z (about 10 years ago)
- Last Synced: 2024-10-13T11:15:48.981Z (about 1 month ago)
- Language: JavaScript
- Homepage: https://github.com/chenglou/node-huxley
- Size: 631 KB
- Stars: 20
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- License: LICENSE-MIT
Awesome Lists containing this project
README
# Grunt-huxley
Grunt task runner for [node-huxley](https://github.com/chenglou/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](http://docs.seleniumhq.org/download/) is used to automate the recorded browser actions. Don't have it yet? Try the [node wrapper](https://github.com/eugeneware/selenium-server).
## API
If you're already familiar with [node-huxley](https://github.com/chenglou/node-huxley), the API is basically the same: [https://github.com/chenglou/node-huxley/wiki/API](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
```js
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']);
};
```