百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
A

acot

> 测试质量
开源

:gem: 可访问性测试框架。全球范围内的更易访问的网站。

191 stars0 点赞4 次浏览
访问官网GitHub

工具介绍

:gem: 可访问性测试框架。全球范围内的更易访问的网站。

Accessibility Testing Framework


!! THE ACOT IS STILL IN ALPHA STATUS AND MAY BE BROKEN BY THE UPGRADE !!


Overview

More accessible web, all over the world.

acot is an open-source Accessibility Testing Framework that uses headless Chrome (puppeteer) to provide means of testing any website or web app. It supports for making the Web accessible with a flexible, highly reliable rule set that leverages browser-native APIs such as the AOM and DOM.

Reliability

  • By using the results rendered by the browser, a highly reliable audit is possible.
  • acot provides original rules. In addition, it offers rules based on the proven axe.

Extensibility

  • You can use the rules published in the ESLint like plugin system.
  • It's easy to implement and publish the rule sets you need for your team.
  • The divided packages allow you to assemble a custom workflow that works best for your team.

Portability

  • You can create and publish your own configuration with Sharable Config.
  • Provides Custom Runner for integration with Storybook.

Getting Started

Install via npm:

bash
$ npm install --save-dev @acot/cli

# or

$ npm install --save-dev @acot/cli puppeteer

You can build the configuration file and install the dependent packages with the following commands:

bash
$ npx acot init

And then, the run subcommand performs an audit based on the configuration file.

bash
$ npx acot run

See the CLI documentation for details.

Configuration

If you use acot as the CLI, you can configure the audit via configuration file.
Usually, when you create a configuration file called acot.config.js, acot will automatically use that configuration file.

The simple configuration is as follows (acot.config.js):

javascript
module.exports = {
  presets: ['@acot/wcag'],
  extends: ['preset:@acot/wcag/recommended'],
  origin: 'http://localhost:8000',
  connection: {
    command: 'npm run serve',
  },
  paths: ['/', '/path', '/path/to', '/path/to/dir'],
  rules: {
    '@acot/wcag/interactive-has-enough-size': 'warn',
    '@acot/wcag/page-has-valid-lang': 'off',
    '@example/foo/bar': [
      'error',
      {
        /* options */
      },
    ],
  },
};

See the Configuration for details.

Requirements

  • Node.js 12.10.0+ (require Promise.allSettled)
  • Puppeteer 5.4.0+ (require aria handler)

Documentation

  • Configuration
  • Command Line Interface
  • Core API
  • Develoepr Guide

Packages

acot has a feature which is divided into several packages.

Foundations

Package Description
@acot/core acot core API.
@acot/cli acot command line tool.
@acot/config A module to manipulate configs of acot.

Configs / Presets

Package Description
@acot/acot-config A basic acot rule set.
@acot/acot-preset-wcag A WCAG-based rule set for acot.
@acot/acot-preset-axe An axe rule set for acot.

Runners

Package Description
@acot/acot-runner-sitemap An acot custom runner reading audit pages from sitemap.
@acot/acot-runner-storybook An acot custom runner for Storybook.

Reporters

Package Description
@acot/acot-reporter-pretty An acot default reporter.
@acot/acot-reporter-dot A dot reporter for @acot/cli.
@acot/acot-reporter-github GitHub reporter for @acot/cli.

Utilities

Package Description
@acot/find-chrome Find Chrome available in your runtime environment.
@acot/html-pickup Use the CSS Selector to pick up the elements from the HTML string.
@acot/schema-validator A simple wrapper module for schema-utils.

FAQ

T.B.A

Contributing

We are always welcoming your contribution :clap:

See CONTRIBUTING.md.

License

MIT © wadackel

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScripta11yaccessibilityacotaudit

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类测试质量
定价开源

> 相关工具

J
Jest
JavaScript 测试框架
P
Playwright
现代端到端测试框架
E
eslint-plugin-test-selectors
Enforces that data-test-id attributes are added to interactive DOM elements (JSX) to help with UI testing. JSX only.