Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

Add runner to the report for each issue. Fixes #8 #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thibaudcolas
Copy link

@thibaudcolas thibaudcolas commented May 12, 2020

This was much easier than I thought :) Here is how to test this, with the change checked out locally, truncated for an illustration of a case where it’s valuable to have the runner displayed:

$ pa11y --reporter . --runner axe --runner htmlcs --standard WCAG2AAA https://pa11y.org/

[]

 • Error: Heading levels should only increase by one (https://dequeuniversity.com/rules/axe/3.5/heading-order?application=axeAPI)
   ├── axe: heading-order
   ├── #pa11y-1
   └── <h3 id="pa11y-1"><a href="https://github.com/pa1...</h3>

[]

 • Error: The heading structure is not logically nested. This h3 element should be an h2 to be properly nested.
   ├── htmlcs: WCAG2AAA.Principle1.Guideline1_3.1_3_1_AAA.G141
   ├── #pa11y-1
   └── <h3 id="pa11y-1"><a href="https://github.com/pa1...</h3>

Testing this further, I think I would be interested in also adding this to the CSV and HTML reporters. Does that sound useful?

Sample output:

 • Error: Heading levels should only increase by one (https://dequeuniversity.com/rules/axe/3.5/heading-order?application=axeAPI)
   ├── axe: heading-order
   ├── #pa11y-1
   └── <h3 id="pa11y-1"><a href="https://github.com/pa1...</h3>

[…]

 • Error: The heading structure is not logically nested. This h3 element should be an h2 to be properly nested.
   ├── htmlcs: WCAG2AAA.Principle1.Guideline1_3.1_3_1_AAA.G141
   ├── #pa11y-1
   └── <h3 id="pa11y-1"><a href="https://github.com/pa1...</h3>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant