背景:我使用 Jasmine 作为 Protractor 的测试框架,我一直在使用茉莉花规格记者 https://www.npmjs.com/package/jasmine-spec-reporter用于报告。昨天我稍微改变了我的jasmineNodeOpts
我的量角器 conf.js 中的参数包括print()
函数即
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 120000,
includeStackTrace : true,
isVerbose : true,
print: function () {}
},
我添加了这个打印功能,因为我了解到它会删除.
每次报告之前。例如,我的测试报告曾经返回:
. ✓ should display a profile question about IT loads
. ✓ checks the width of the progress bar
. ✓ selects an option from the radio buttons and updates the progress bar
现在那些前导点被删除了。然而,现在我的最终报告也略有变化:
14 specs, 2 failures Finished in 45.473 seconds // this is the old, desired output
To this:
Executed 14 of 14 specs (2 FAILED) in 45 secs. // this is my current, undesired output
我想要两全其美,拥有.
从我的报告中删除,但保留之前的总体报告。
Problem: 我找不到detailed文档关于jasmineNodeOpts
和/或那个print()
功能。它被提到在茉莉花规格记者 https://github.com/bcaudan/jasmine-spec-reporter/blob/master/docs/protractor-configuration.md和量角器参考配置 https://github.com/angular/protractor/blob/master/lib/config.ts但没有关于它如何工作的真正文档,只提供了非常弱的示例。
有谁知道我可以在哪里了解更多相关信息print()
功能和/或如何更改我的最终测试输出?