guard / guard-jasmine

The Swiss Army knife for automated Jasmine specs in your console.

Home Page:http://guard.github.io/guard-jasmine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Making it work with Padrino/sinatra

bhavinkamani opened this issue · comments

Has anyone tried this gem with Padrino/Sinatra? When I start it, it comes out with following error message

 ERROR - Jasmine test runner failed with status 404
 ERROR - Please open the Jasmine runner in your browser for more information.

On the browser http://localhost:57984/jasmine, Padrino server takes me to Sinatra's 404 page.

As long as the Jasmine runner is accessible, guard-jasmine should should work fine, as long as you do not use the latest Jasmin 2.0 :( So you need to make sure Sprockets is mounted and serves the normal HTML reporter and configure guard-jasmine to access the right path.

I was using jasmine 2.0. I switched over to 1.3 and still getting the same error.

I do have sprockets configured and its working fine for my pages. I have rake jasmine server working fine for both 2.0 as well as 1.3.

404 means not found, so you need to set the proper path to the web based runner by setting the jasmine_url option to the url the runner is available at.

Thanks a ton. After few trials, I could make it work with following settings.

guard :jasmine, jasmine_url: 'http://localhost:8888/', port: 8888, server_env: :test, server: :jasmine_gem

Its working with jasmine_gem, but its not working with puma - Its hanging. Trying to get it work with puma since sprocket is configured with padrino and I am trying to not add any extra setup for coffeescript.