pa11y 自动化可访问性测试

程序名称:pa11y

授权协议: GPLv3

操作系统: 跨平台

开发语言: JavaScript

pa11y 介绍

pa11y 是自动化可访问性测试工具,在命令行运行 HTML
CodeSniffer
生成程序化可访问性报告。

在线演示

pa11y nature.com


var pa11y = require('pa11y');
pa11y(options, function (error, test, exit) {
    test('nature.com', function (error, results) {
        /* ... */
    });
});

pa11y 要求 Node.js 0.10+ 和 PhantomJS to
run.

在 Mac 使用 Homebrew 安装:

$ brew install node
$ brew install phantomjs

命令行工具

Usage: pa11y [options] <url>

  Options:

    -h, --help                 output usage @R_332_4045@ion
    -V, --version              output the version number
    -s, --standard <name>      the accessibility standard to use: Section508, WCAG2A, WCAG2AA (default), WCAG2AAA
    -r, --reporter <reporter>  the reporter to use: cli (default), csv, html, json
    -l, --level <level>        the level of message to fail on (exit with code 2): error, warning, notice
    -i, --ignore <ignore>      types and codes of messages to ignore separated by semi-colons
    -c, --config <path>        a JSON config file
    -p, --port <port>          the port to run PhantomJS on
    -t, --timeout <ms>         the timeout in milliseconds
    -d, --debug                output debug messages

pa11y 官网

http://pa11y.org/

相关编程语言

提到 EclEmma 首先就要说到著名的 Java 覆盖测试工具...
Solex是一个WEB应用测试用的Eclipse插件。Solex可以...
Apache为我们提供了一个强大的工具 Cactus!它是一套...
Google C Testing Framework是Google公司用来在各种...
JdbcProxy 是 SourceForge 上一个开源的 Java 项目,...
Ripplet是一款负载测试工具,特征如下: 1)基于Apa...