Zach
Zach

Reputation: 189

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 ?

Upvotes: 4

Views: 983

Answers (2)

dmccabe
dmccabe

Reputation: 1034

You can do this by adding the following to your jasmine.yml file:

show_console_log: true

Upvotes: 3

Zach
Zach

Reputation: 189

Figured it out.

In jasmine_helpers.rb:

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

Upvotes: 5

Related Questions