c++ - C++ XPCOM 组件的测试驱动开发?

标签 c++ tdd xpcom

我想使用 c++ XPCOM 组件创建一个 Firefox 扩展,该组件又使用 javascript XPCOM 组件。是否有任何框架允许 C++ XPCOM 组件/firefox 扩展的测试驱动开发?

最佳答案

您可以复制 Mozilla uses to test native code 的内容.您只需确保链接到 libxul(这可能需要您构建 Firefox)。

使用 TestHarness.h 的示例文件 can be found here .

关于c++ - C++ XPCOM 组件的测试驱动开发?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1582095/

相关文章:

c++ - 使 Eclipse CDT 忽略某些功能的错误

c++ - 语言分析的二叉树实现 - 子节点作为节点 : does not work

ruby-on-rails - 使用 MiniTest 测试用户模型(设计身份验证)

javascript - 使用addProgressListener和onStatusChange获取页面的DNS查找时间

firefox-addon - 使用 xulrunner-sdk-36.0 C++ 编译 firefox 扩展

c++ - 在 C++ 中读取多行输入

c++ - Installshield,安装应用程序后,系统会提示用户安装程序

reactjs - 错误 : Unable to find an element with the text when I try a test with Jest in React

ruby-on-rails - Rails 路由测试

javascript - 在 Thunderbird 扩展中获取选定的消息数据