pa11y: possibilité de spécifier le standard d'audit

This commit is contained in:
wpetit 2020-08-11 10:22:57 +02:00
parent ffe16b7927
commit 11f3ddc835
2 changed files with 3 additions and 0 deletions

View File

@ -15,4 +15,5 @@ pa11y \
--include-warnings \
--include-notices \
--reporter "${PA11Y_REPORTER}" \
--standard "${PA11Y_STANDARD}" \
"$PA11Y_URL" || exit 0

View File

@ -2,6 +2,7 @@ def audit(String url, Map params = [:]) {
def reporter = params.reporter ? params.reporter : 'html'
def username = params.username ? params.username : '';
def password = params.password ? params.password : '';
def standard = params.standard ? params.standard : 'WCAG2AA';
def pa11yImage = buildDockerImage()
@ -10,6 +11,7 @@ def audit(String url, Map params = [:]) {
-e PA11Y_URL='${url}'
-e PA11Y_USERNAME='${username}'
-e PA11Y_PASSWORD='${password}'
-e PA11Y_STANDARD='${standard}'
"""
pa11yImage.inside(dockerArgs) {