Dummy Run stands on other people’s open-source work. Here are the tools the accessibility checks bundle or run, and
the data taken from them, with what each does for you and its licence. The full licence texts are in
LICENSES and next to each bundled copy, and NOTICE has the copyright lines.
Rule engines
These run inside the page you test, so their results describe the page as your visitors’ browsers build it.
Alfa is bundled into one script with esbuild (MIT), which is used only to
build it. The bundle includes Color.js (MIT), which Alfa uses for its colour
calculations. internal/page/engines/alfa/build.sh rebuilds it from the pinned versions.
Answers cookie banners by rejecting, with --consent, and sorts their buttons so a banner with no reject button can be reported
MPL-2.0
The compact rule set is used as published. The bundle has one change. A pattern that spots “close” buttons listed
“des cookies” and “de cookies” twice: once on their own and once as an article followed by “cookie”. The overlap
let a page make the browser backtrack for a very long time on a crafted button label, so the two extra entries are
removed. When the change was made, the old and new patterns were run side by side on 12 real phrases, such as
“fermer des cookies”, and 20,000 random ones. They gave the same answer every time, except on strings like “des de
cookies”, an article followed by “de cookies”, which only the old one accepts. The change is marked in the file, and
a test checks the bundle still carries it.
Reads the page aloud as text for a persona that gets no screenshots
MIT
It’s bundled into one script with esbuild. Its browser build already includes other packages, and NOTICE has their
copyright lines. aria-query is under Apache-2.0. The rest are under MIT: @testing-library/dom,
@testing-library/user-event, dom-accessibility-api, html-aria, lz-string, pretty-format, react-is, ansi-regex,
ansi-styles and dequal.
internal/page/screenreader/build/build.sh rebuilds it from the pinned versions.
Measures how long a page takes to respond to each click and key press the keyboard checks make, as Interaction to Next Paint (INP), with where the time went. fetch.sh checks the package’s SHA-256 before it copies the file
Apache-2.0
It’s bundled unchanged as internal/page/webvitals/web-vitals.attribution.iife.js, and fetch.sh next to it fetches
it again.
In Chrome, Accessibility.getFullAXTree gives the role, name and states of each control in Chrome’s tree. It also says whether a screen reader can reach the control. A control missing from the tree, and every control in Firefox, gets the engine’s own name script. Firefox refuses goog:cdp commands
Its accessibility and best-practice audits, with --lighthouse. It runs as its own program and isn’t bundled
Apache-2.0
Link checking
Tool
Version
What it does in Dummy Run
Licence
lychee by Matthias Endler and the lychee contributors
0.24.2 in the container image
Checks the links on each page with --links. With preview access on, the browser checks the links on the sites you sweep, and lychee only those to other sites. It runs as its own program, found on PATH or through DUMMYRUN_LYCHEE
Its technology fingerprints, read from your copy at run time to fill target.tech. Dummy Run doesn’t bundle or copy them, and its own fingerprints are written separately
GPL-3.0
Methods we learned from
Some checks follow a method another project worked out, written again in our own code.
The YAML layout of its ARIA snapshots, one list item for each role and name with its states in square brackets, for --aria-snapshots. The outline is our own and no Playwright code is used
Suggesting a colour that meets a contrast ratio by changing its lightness, so the hue stays, for the colour suggestions on contrast failures. When the new lightness at that chroma is a colour the screen can’t show, the chroma comes down too. The colour maths is OKLab, written again from the formulas in CSS Color Module Level 4
Apache-2.0
Sa11y from Toronto Metropolitan University and Editoria11y, which is developed with it
The idea of checking what authors write, such as vague link names, file names as alt text and bold text standing in for a heading, for --content. The checks, thresholds and wording are our own, written from the public descriptions of the problems. No code from either is used
The difference hash, which shrinks a picture to 9 by 8 grey cells and sets a bit where a cell is brighter than the next, for the hash_distance of --visual. The code is our own
Measuring layout from the browser’s rectangles and what is painted on top at a point: outermost elements past the window, clipped text, controls under other controls, focus hidden behind opaque content, and the measurable target size exceptions. Used by --layout
MIT
Data
The list of WCAG 2.2 success criteria at levels A and AA, with their titles and links, was generated from the
criteria data in Siteimprove Alfa (MIT). The EN 301 549 clause numbers follow clause 9 of
ETSI EN 301 549 V3.2.1,
which numbers each WCAG 2.1 criterion the same way. No text of the standard is copied.
The screen reader support figures for dummyrun-aria-support are the
ARIA-AT reports of the W3C ARIA and Assistive Technologies Community Group,
fetched from its public API and kept unchanged. They are under the
W3C Document License, and internal/a11y/ariaat/LICENSE
has the notice. No ARIA-AT code is used.
The test fixtures for checking the sweep against real markup come from the
AccessGuru dataset (MIT). The fixtures use the rule names and the markup of
the elements it lists, and none of its code.
Mutation testing
Mutation testing runs in the project’s own weekly workflow, and CONTRIBUTING.md shows how you run it on your machine. gremlins isn’t part of the program you install.
Makes random inputs, such as robots.txt rules and allow-list entries, checks that a rule holds for each one and shrinks a failure to its smallest case. The unit tests run 100 cases of each, and -rapid.checks runs more