Reputation: 189
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
?
Upvotes: 4
Views: 983
Reputation: 1034
You can do this by adding the following to your jasmine.yml
file:
show_console_log: true
Upvotes: 3
Reputation: 189
Figured it out.
In jasmine_helpers.rb
:
Jasmine.configure do |config|
config.show_console_log = true
end
Upvotes: 5