辅助功能 - 构建测试 [junit 等]

Accessibility - Build Testing [ junit, etc.]

是否有任何工具可以在构建过程中(可能利用 junit 等)进行自动化测试(根据 WCAG 准则)?

是的,有一个叫做 aXe 的工具。它是一个 Java脚本库,可以与任何基于浏览器的测试框架一起使用。

这是一个入门视频https://www.youtube.com/watch?v=zy7Of9WO5JM

这是 GitHub 回购 https://github.com/dequelabs/axe-core

的 link

如果您使用的是 JUnit,这里是 link 到 Java-Selenium 包装器 https://github.com/dequelabs/axe-selenium-java

是的,还要检查 Google 辅助功能开发人员工具:https://github.com/GoogleChrome/accessibility-developer-tools

覆盖范围不是那么大,但是您有几个 运行 在 Phantom 浏览器中的自动化测试。

Continuum offers an SDK and several example projects that can be used to perform automated accessibility testing. For instance, here's some documentation about how to use the Java/Cucumber/Selenium example project, which might be a great starting point for you given you've expressed interest in using something like JUnit. Given there's not a specific JUnit example project for Continuum at the moment, here's some API documentation 如果您愿意的话,您可以使用它来滚动您自己的 Continuum 实现。