Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.logs do not get outputted. How can I accomplish this? Maybe something in jasmine_helper.rb ?

like image 746
Zach Avatar asked Feb 10 '23 22:02

Zach


1 Answers

Figured it out.

In jasmine_helpers.rb:

Jasmine.configure do |config|
  config.show_console_log = true
end
like image 53
Zach Avatar answered Feb 13 '23 10:02

Zach