如何查看 jpm 控制台警告
How to view jpm console warnings
jpm test
向控制台报告:
.console.warn: reusetab: 10 warnings or errors were logged to the
platform's nsIConsoleService, which could be of no consequence;
however, they could also be indicative of aberrant behavior.
如何查看这些 "warnings or errors"?
这些错误目前被过滤掉了测试日志记录,因为它们太冗长了,不幸的是目前没有办法关闭它。这是计算 errors/warnings 并选择要过滤的内容的代码:https://github.com/mozilla/addon-sdk/blob/a33887015f82f8498d0dfe5326407bfc7adde940/lib/sdk/test/harness.js#L464-L470
要查看这些错误和警告,您现在必须使用 Browser Console。
您可以使用 jpm test --do-not-quit
来 运行 测试并防止 Firefox 自动退出,这样您就可以在退出前检查浏览器控制台和其他内容。
jpm test
向控制台报告:
.console.warn: reusetab: 10 warnings or errors were logged to the platform's nsIConsoleService, which could be of no consequence; however, they could also be indicative of aberrant behavior.
如何查看这些 "warnings or errors"?
这些错误目前被过滤掉了测试日志记录,因为它们太冗长了,不幸的是目前没有办法关闭它。这是计算 errors/warnings 并选择要过滤的内容的代码:https://github.com/mozilla/addon-sdk/blob/a33887015f82f8498d0dfe5326407bfc7adde940/lib/sdk/test/harness.js#L464-L470
要查看这些错误和警告,您现在必须使用 Browser Console。
您可以使用 jpm test --do-not-quit
来 运行 测试并防止 Firefox 自动退出,这样您就可以在退出前检查浏览器控制台和其他内容。