JSPM

pa11y-result-errors-quantity-validator

1.0.12
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q35242F
  • License MIT

Read a result of pa11y-ci json file and validates if surpasses the maximum quantity of errors passed by arguments

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pa11y-result-errors-quantity-validator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Pa11y result errors quantity validator

    About

    This repository is a npm package which read a result of pa11y-ci json file and validates if surpasses the maximum quantity of errors passed by arguments. The gitlab-ci file is configured to publish a npm package and a docker image with that package installed, to be used in CI/CD projects which requires validate the amount of non success criterias of WCAG2.0

    How to use NPM package

    • Install node
    • Install package
      • npm install pa11y-result-errors-quantity-validator -g
    • Use package
      • pa11y-result-errors-quantity-validator <path pa11y results json> <maximum quantity of errors>

    How to use docker image

    • Install Docker
    • Pull docker image
      • docker pull registry.hub.docker.com/martinivaldi/pa11y-result-errors-quantity-validator
    • Use docker image in a container (should change CMD script and pass a pa11y result json file to analyze)
      • docker run -t registry.hub.docker.com/martinivaldi/pa11y-result-errors-quantity-validator