0.1
Repository is archived
No commit activity in last 3 years
No release in over 3 years
axe-matchers provides matchers that wrap the axe-core accessibility library. The matchers can be used with RSpec, Cucumber and other test tools. Cucumber step definitions are also provided.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16
~> 3.29
~> 2.4
>= 0
~> 12.0
~> 3.6
~> 1.2
~> 2.0
~> 6.6

Runtime

 Project Readme

[DEPRECATED] axe-matchers

No Maintenance Intended

This repository has been deprecated. The package has been moved to axe-core-gems. These set of packages will be available via rubygems.org prefixed with @axe-core-* .


Automated accessibility testing powered by aXe.

Provides Cucumber step definitions and RSpec matchers for auditing accessibility.

Uses the aXe core javascript library for accessibility testing.

Philosophy

We believe that automated testing has an important role to play in achieving digital equality and that in order to do that, it must achieve mainstream adoption by professional web developers. That means that the tests must inspire trust, must be fast, must work everywhere and must be available everywhere.

Manifesto

  1. Automated accessibility testing rules must have a zero false positive rate
  2. Automated accessibility testing rules must be lightweight and fast
  3. Automated accessibility testing rules must work in all modern browsers
  4. Automated accessibility testing rules must, themselves, be tested automatically

Getting Started

Installation

Add this line to your application's Gemfile:

gem 'axe-matchers'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install axe-matchers

Usage

Cucumber

A set of step definitions have been provided for accessibility testing through Cucumber, using WebDrivers.

Read the documentation for the Cucumber Integration.

RSpec

A set of matchers have been provided for accessibility testing through RSpec using WebDrivers.

Read the documentation for the RSpec Integration

The Accessibility Rules

axe-matchers uses axe-core@3x, which can test for accessibility inside of Shadow DOM HTML subtrees. See the axe-core repository for more information.

The complete list of rules run by axe-core can be found in doc/rule-descriptions.md.

WebDrivers

axe-matchers supports Capybara, Selenium, and Watir webdrivers; each tested with Firefox, Chrome, and Safari. Additionally, selenium-chrome-headless and capybara-webkit are supported.

Notes:

Contributing

Read the documentation on contributing