大多数Cordova插件都有一个名为“tests”的文件夹,它托管了plugin.xml和tests.js.任何人都可以了解如何运行它们,以及需要运行什么?似乎没有相关文件.谢谢! 有一个官方的Cordova库用于运行
从github上的Cordova Plugin Test Framework:
The
org.apache.cordova.test-framework
plugin does two things:
- Defines the interface for cordova plugins to write tests
- Provides a test harness for actually running those tests
Tests run directly
inside existing cordova projects, so you can rapidly switch between
testing and development. You can also be sure that your test suite is
testing the exact versions of plugins and platforms that your app is
using.
访问该页面;有关于运行现有测试和使用自己的插件框架的大量信息.