用Grunt的Karma记者打印[object Object]而不是描述字符串 [英] Karma reporter with Grunt prints [object Object] instead of describe strings
问题描述
使用grunt,我的失败测试输出如下:
Chrome 37.0.2062(Mac OS X 10.9.5)[object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object如果没有设置过滤器选项,则对象] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object]应返回完整列表失败
当我在没有咕噜声的情况下运行测试时,描述字符串打印得很好。
Grunt 0.4.5
Karma 0.12 .23
Karma-Jasmine 0.2.0
Grunt-Karma 0.9.0
是r0.2.1解决的业力 - 茉莉花问题...
问题/ 46rel =nofollow> https://github.com/karma-runner/karma-jasmine/issues/46With grunt, my failing tests output like so:
Chrome 37.0.2062 (Mac OS X 10.9.5) [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] should return full list if no filter options are set FAILED
When I run the tests without grunt, the describe strings get printed just fine.
Grunt 0.4.5 Karma 0.12.23 Karma-Jasmine 0.2.0 Grunt-Karma 0.9.0
Looks like it was a karma-jasmine issue resolved with r0.2.1...
https://github.com/karma-runner/karma-jasmine/issues/46
这篇关于用Grunt的Karma记者打印[object Object]而不是描述字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!