noredink-ui/script/axe-report.jq

15 lines
684 B
Plaintext
Raw Normal View History

2019-07-24 00:55:31 +03:00
def node: " at \(.target | join(" ")):\n\n \(.failureSummary | gsub("\n"; "\n "))";
2019-07-24 13:42:31 +03:00
def violation: " \(.id): \(.impact) violation with \(.nodes | length) instances.\n\n \(.help) (\(.helpUrl))\n\n\(.nodes | map(node) | join("\n\n"))";
2019-07-24 00:55:31 +03:00
"Tested \(.url) with \(.testEngine.name) \(.testEngine.version) at \(.timestamp)
Agent information:
\(.testEnvironment | to_entries | map("\(.key): \(.value)") | join("\n "))
Summary: \(.passes | length) passes | \(.violations | map(.nodes | length) | add) violations | \(.incomplete | map(.nodes | length) | add) incomplete | \(.inapplicable | length) inapplicable
2019-07-24 00:55:31 +03:00
Violations:
\(.violations | map(violation) | join("\n\n"))
"