From 0426fc57cc228e232fdeb581adcf290cbf05b560 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Tue, 7 Jun 2011 14:55:31 -0400 Subject: [PATCH] use the jasmine pretty printer if available --- Gemfile | 1 + Guardfile | 2 ++ ext/jasmine-webkit-specrunner/specrunner.cpp | 2 ++ lib/jasmine/cli.rb | 8 +++++++- 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index a1c5e80..7740bcd 100644 --- a/Gemfile +++ b/Gemfile @@ -8,5 +8,6 @@ gem 'fakefs', :require => nil gem 'guard' gem 'guard-rspec' gem 'guard-shell' +gem 'guard-coffeescript' gem 'growl' gem 'rake', '0.8.7' diff --git a/Guardfile b/Guardfile index 1b2b482..99417c6 100644 --- a/Guardfile +++ b/Guardfile @@ -21,3 +21,5 @@ def compile end compile + +guard 'coffeescript', :input => 'jasmine' diff --git a/ext/jasmine-webkit-specrunner/specrunner.cpp b/ext/jasmine-webkit-specrunner/specrunner.cpp index 7723be7..ff7a00e 100644 --- a/ext/jasmine-webkit-specrunner/specrunner.cpp +++ b/ext/jasmine-webkit-specrunner/specrunner.cpp @@ -221,6 +221,8 @@ void HeadlessSpecRunner::log(const QString &msg) } std::cout << "[console] "; clear(); + if (msg.contains("\n")) + std::cout << std::endl; std::cout << qPrintable(msg); std::cout << std::endl; } diff --git a/lib/jasmine/cli.rb b/lib/jasmine/cli.rb index 73072da..2612a34 100644 --- a/lib/jasmine/cli.rb +++ b/lib/jasmine/cli.rb @@ -36,7 +36,13 @@ module Jasmine Jasmine Test Runner #{files.join("\n")}