javascript - Can I write the output of jasmine-spec-reporter to file? - Stack Overflow

I am currently using jasmine-spec-reporter to create a spec report for my Protractor test cases.The out

I am currently using jasmine-spec-reporter to create a spec report for my Protractor test cases.

The output on the terminal looks great! Is there any way to save this output to file or somehow use protractor-jasmine2-screenshot-reporter to create a summary, but disable the screenshots?

I have tried looking online for solutions, but so far haven't been successful.

var SpecReporter = require('jasmine-spec-reporter');
jasmine.getEnv().addReporter(new SpecReporter({displayStacktrace: 'none'}));

My current workaround is to use the protractor-jasmine2-screenshot-reporter to generate the report. This also generates screenshots (not very practical due to the volume being created).

If anyone has a solution to disabling the screenshots, or even not allowing the .png files to save, please share.

I am currently using jasmine-spec-reporter to create a spec report for my Protractor test cases.

The output on the terminal looks great! Is there any way to save this output to file or somehow use protractor-jasmine2-screenshot-reporter to create a summary, but disable the screenshots?

I have tried looking online for solutions, but so far haven't been successful.

var SpecReporter = require('jasmine-spec-reporter');
jasmine.getEnv().addReporter(new SpecReporter({displayStacktrace: 'none'}));

https://github./jintoppy/protractor-html-screenshot-reporter

https://github./bcaudan/jasmine-spec-reporter

My current workaround is to use the protractor-jasmine2-screenshot-reporter to generate the report. This also generates screenshots (not very practical due to the volume being created).

If anyone has a solution to disabling the screenshots, or even not allowing the .png files to save, please share.

Share Improve this question edited May 5, 2016 at 19:39 fuzzi asked May 5, 2016 at 18:32 fuzzifuzzi 2,27712 gold badges58 silver badges97 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 2

The output on the terminal looks great! Is there any way to save this output to file

This package is what you want https://www.npmjs./package/jasmine-reporters. It contains several different reporting options. If you want to parse the xml into an html file you can use https://www.npmjs./package/jasmine-xml2html-converter

It seems that this guy had the same need: https://github./Kenzitron/protractor-jasmine2-html-reporter

You can turn off screenshot if needed:

jasmine.getEnv().addReporter(new Jasmine2HtmlReporter({
   takeScreenshots: false
}));

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742390807a4434974.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信