从 grunt-contrib-jasmine 记录 [英] Logging from grunt-contrib-jasmine

查看:26
本文介绍了从 grunt-contrib-jasmine 记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 grunt-contrib-jasmine 来运行我的 javascript 规范.运行规范时如何将调试输出写入控制台,即如何获取

I'm using grunt-contrib-jasmine to run my javascript specs. How do I write debug output to the console when running specs i.e. how do I get

console.log("something");

在控制台中显示输出?我确实发现我可以通过运行得到输出:

to show output in the console? I do find that I can get output by running:

 $ grunt jasmine --verbose

但这会打印出很多我不感兴趣的信息.我怎样才能看到来自 console.log 的输出?

But this prints a lot of information that I'm not interested in. How can I just see the output from console.log ?

推荐答案

使用 console.info 代替 console.log

这篇关于从 grunt-contrib-jasmine 记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆