简体   繁体   中英

Jasmine-gem / jasmine:ci : How to console.log?

I'm using the jasmine-gem as part of a rails project.

I know I can run the tests in a browser with rake jasmine , but I need to run them headless via rake jasmine:ci .

When I'm running them in headless/ci mode, console.log s do not get outputted. How can I accomplish this? Maybe something in jasmine_helper.rb ?

Figured it out.

In jasmine_helpers.rb :

Jasmine.configure do |config|
  config.show_console_log = true
end

您可以通过将以下内容添加到jasmine.yml文件中来完成jasmine.yml操作:

show_console_log: true

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM