liip / TheA11yMachine

The A11y Machine is an automated accessibility testing tool which crawls and tests pages of any web application to produce detailed reports.
https://www.liip.ch/
621 stars 66 forks source link

Add async callback option to a11ym runner #133

Open okeefm opened 5 years ago

okeefm commented 5 years ago

This PR adds a processCallback option that can be passed in when calling lib/a11ym.js programmatically. This allows for the runner to call the callback when the testing process ends, either naturally or via ctrl+c/SIGINT.

This change is needed to support running TheA11yMachine as a Grunt task: https://gruntjs.com/creating-tasks. Once this gets merged, I could build a Grunt plugin to run TheA11yMachine.