Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial Specifications #2

Closed
ttsukagoshi opened this issue Nov 4, 2022 · 3 comments · Fixed by #8
Closed

Initial Specifications #2

ttsukagoshi opened this issue Nov 4, 2022 · 3 comments · Fixed by #8
Assignees
Labels
enhancement New feature or request

Comments

@ttsukagoshi
Copy link
Owner

axe-scan test [options]

By default, search for urls.txt in the user's current directory and conducts accessibility tests against the listed URLs. STDOUT the list of page-by-page, element-by-element test results, where the result type is violation or incomplete:

axe-scan test > axe-results.csv
  • Returns an error if urls.txt is not found. Optionally designate a path for the list of URLs.
  • Designate a list of whitelisted alerts using the --whitelist option. The matching alerts will be excluded from the output
axe-scan test [--file | -F] path/to/urls-list.txt [--whitelist | -W] ./whitelisted-alerts.csv

User options will be determined in the following order: (1) ./axe-scan.config.json file in the working directory, (2) ~/axe-scan.config.json file in the user's home directory, and (3) default settings.

axe-scan config <key>=<value>

will save the setting to the local ./axe-scan.config.json file. You can also manually save the JSON file to the directory of your choice.

{
  "axeCoreTags": ["wcag2a", "wcag2aa", "wcag21a", "wcag21aa"], // For available values, see https://www.deque.com/axe/core-documentation/api-documentation/#user-content-axe-core-tags
  "resultTypes": ["incomplete", "violations"],
  "filePath": "./urls.txt",
  "encoding": "utf8",
  "locale": "ja"
}
@ttsukagoshi ttsukagoshi added the enhancement New feature or request label Nov 4, 2022
@ttsukagoshi ttsukagoshi self-assigned this Nov 4, 2022
@ttsukagoshi
Copy link
Owner Author

axe-scan summary [--pages | -P] [--whitelist | -W] ./whitelisted-alerts.csv

Create a summarized accessibility report of the web pages grouped by the WCAG indices. If the option --pages is set, the report will be generated per page.

@ttsukagoshi
Copy link
Owner Author

axe-scan run instead of axe-scan test to avoid confusion with code testing.

@ttsukagoshi
Copy link
Owner Author

  • axe-scan init will create a axe-scan.config.json in the working directory with the default values.
  • If there is an existing config file in the directory, it will ask the user whether to update the file or to abort.
  • If the user has placed a config file at their home directory ~/axe-scan.config.json, axe-scan init will copy that setting instead of the default values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant