Open stefansurkamp opened 2 years ago
Hey @stefansurkamp,
Thanks for submitting this issue.
We will investigate this issue and add validation to tags
if required.
Thanks for the quick response. I did some investigation myself and want to report that this might be a non-issue - it might only be "0 violations" for google.com specifically. I tried out another URL
▶ axe https://diluz.io/sebastian
Running axe-core 4.4.1 in chrome-headless
Testing https://diluz.io/sebastian ... please wait, this may take a minute.
[...]
15 Accessibility issues detected.
Testing complete of 1 pages
▶ axe https://diluz.io/sebastian --tags wcag2a
Running axe-core 4.4.1 in chrome-headless
Testing https://diluz.io/sebastian ... please wait, this may take a minute.
[...]
14 Accessibility issues detected.
Testing complete of 1 pages
So it seems, everything's working as expected.
Am I then right in the assumption that not providing tags, will apply all of them, while having tags will only apply a subset?
Correct, not applying the --tags
flag will apply all of the axe-core tags, minus experimental rules. Applying a subset of these tags, the CLI will run all the rules associated with those tags. Example:
All WCAG2A rules:
axe www.deque.com --tags wcag2a
All WCAG2A, WCAG2AA, WCAG2AAA rules:
axe www.deque.com --tags wcag2a,wcag2aa,wcag2aaa
However, providing an invalid tag (example: --tags random
) does not default back to all tags nor currently, do any type of tag validation. This is something we may need to investigate.
Product: cli
Expectation: axe should show the same (or more) errors when settings
--tags wcag2a
.Actual: axe reports
0 violations found!
when adding--tags anything
.Motivation: Adding a certain set of tags should still allow for proper execution.
Reproduction: