带有 Grunt 和替代品的 Qunit 事件
Qunit events with Grunt and alternatives
我正在使用 grunt-contrib-qunit and I'm trying to find event, which event arguments hold information for a failed test (the error message of the failed assert). As far as I see, this is not possible. In the testDone event, the count of the failed asserts can be found, but nothing more. I have asked them in their GitHub repo,但没有人回答我。有人知道吗?
是否有一些替代模块可以 运行 QUnit 测试并提供有关失败断言的详细信息?
'log' 事件可用于:
在 grunt 中,您可以注册以下事件处理程序:
grunt.event.on('qunit.log', function (result, actual, expected, message, source) { });
我正在使用 grunt-contrib-qunit and I'm trying to find event, which event arguments hold information for a failed test (the error message of the failed assert). As far as I see, this is not possible. In the testDone event, the count of the failed asserts can be found, but nothing more. I have asked them in their GitHub repo,但没有人回答我。有人知道吗?
是否有一些替代模块可以 运行 QUnit 测试并提供有关失败断言的详细信息?
'log' 事件可用于:
在 grunt 中,您可以注册以下事件处理程序:
grunt.event.on('qunit.log', function (result, actual, expected, message, source) { });