我正在使用jasmine-gem作为rails项目的一部分。
我知道我可以使用rake jasmine在浏览器中运行测试,但我需要通过rake jasmine:ci无头运行它们。
当我在无头/ci模式下运行它们时,不会输出console.log。我如何才能做到这一点呢?也许是jasmine_helper.rb中的一些东西?
发布于 2015-02-14 02:00:57
我想通了。
在jasmine_helpers.rb中
Jasmine.configure do |config|
config.show_console_log = true
end发布于 2015-12-19 00:52:22
您可以通过将以下内容添加到jasmine.yml文件来完成此操作:
show_console_log: true
https://stackoverflow.com/questions/28503961
复制相似问题