我从未使用过 Selenium,但我猜它用于在所有浏览器中模拟用户交互。
这就像集成测试。
但是您如何以自动化的方式在所有浏览器上测试您的 js 库/框架(单元测试)?
最佳答案
对于单元测试,您可以尝试 http://code.google.com/p/js-test-driver/
JsTestDriver consist of a single JAR file which contains everything you need to get started. For in depth discussion of command line option see GettingStarted.
Here is an overview of how JsTestDriver works at runtime...
关于javascript - 如何在所有浏览器中运行单元测试?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5739832/