为噶JS单元测试.log文件 [英] .log file for Karma js unit testing
本文介绍了为噶JS单元测试.log文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在与噶+茉莉+ NG情景一些JS单元测试
I am making some js unit testing with Karma + Jasmine + ng-scenario
和我试图找到一种方式来告诉我的业力,使文本.log文件来保存我的结果和/或错误。
万一我的测试是太长,一些错误走出控制台。
and I am trying to find a way to tell my karma to make a text .log file to save my results and/or errors. in case my tests are too long and some errors go out of the console.
任何人都有类似的需求?
anyone had similar need?
推荐答案
作为@gustavohenke建议
as @gustavohenke suggested
karma start > tests.log
或
karma run > tests.log
工作,并创建一个日志文件。
works and creates a log file.
这篇关于为噶JS单元测试.log文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文