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/
622 stars 66 forks source link

Improve custom sniffer process #13

Closed krtek4 closed 8 years ago

krtek4 commented 8 years ago

It seems to me the process to add custom sniffers could be automated a bit more.

For example it should suffice to provide the directory with the ruleset and we should be able to built it ourselves by running grunt inside the tool.

We could also maybe provide a tool to generate the needed structure with an option to easily extend a current standard.

If a ruleset.js file can contain only one standard, it's also redundant to have to name it on the CLI.

Any other thoughts ?

Hywan commented 8 years ago

We must consider several things:

I did try to do this without Grunt but the Uglify API is just… ugly! Because we did not have time currently, runnning grunt --sniffers-… was fine enought. Obviously, we have to update this process!

krtek4 commented 8 years ago

My desired "API" : a11ym --sniffers /my/directory/ --standard MyStandard http://example.org/

Remove the grunt part :)