Gulp plugin to use axe-core
Inspired by grunt-axe-webdriver.
This plugin has been deprecated in favor of gulp-axe-webdriver
$ npm install --save-dev gulp-axe-core
var gulp = require('gulp');
var axeCore = require('gulp-axe-core');
gulp.task('axe', function() {
var options = {
saveOutputIn: 'allHtml.json'
};
return gulp.src('src/file2.html')
.pipe(axeCore(options));
});
var gulp = require('gulp');
var axeCore = require('gulp-axe-core');
gulp.task('axe', function() {
var options = {
saveOutputIn: 'allHtml.json',
browser: 'phantomjs'
};
return gulp.src('src/file2.html')
.pipe(axeCore(options));
});
Type: Object
Default value:
{
browser: 'phantomjs',
threshold: 0,
folderOutputReport: 'aXeReports',
saveOutputIn: ''
}
Type: Number
Default value: 0
A number that represents the maximum number of allowable violations. Each violation represents a rule that fails, it may fail for an number of nodes. It is recommended that this value not be changed. A negative value will prevent failure whatever the number of violations.
Type: String
Default value: chrome
Which browser to run the tests in.
Type: String
Default value: ''
An optional file to which the results of the accessibility scans will be written as a JSON Array of results objects.
Type: String
Default value: 'aXeReports'
An optional folder to indicate where the output will be saved.
Read the full changelog.
MIT © Felix Zapata