jejacks0n / teaspoon

Teaspoon: Javascript test runner for Rails. Use Selenium, BrowserStack, or PhantomJS.
1.43k stars 243 forks source link

bad interaction with rack-mini-profiler #238

Closed nornagon closed 10 years ago

nornagon commented 10 years ago

with the rack-mini-profiler gem installed, I see this error on the console when I run bundle exec teaspoon:

Started GET "/teaspoon/mini-profiler-resources/includes.js?v=898a13ca6797c6bc1fee313e17d388b0" for 127.0.0.1 at 2014-06-07 21:38:47 -0700
Processing by Teaspoon::SuiteController#hook as JS
  Parameters: {"v"=>"898a13ca6797c6bc1fee313e17d388b0", "suite"=>"mini-profiler-resources", "hook"=>"includes"}
Completed 500 Internal Server Error in 2ms
SyntaxError: Parse error

I haven't been able to figure out how to configure rack-mini-profiler not to run when teaspoon tests are being run, but this problem would be solved if teaspoon didn't run tests in the development environment. RAILS_ENV=test bundle exec teaspoon works fine.

jejacks0n commented 10 years ago

It runs in development to use the cache. You can set RAILS_ENV in the teaspoon env if you don't want it to run in dev.


Jeremy Jackson

On Jun 7, 2014, at 10:43 PM, Jeremy Apthorp notifications@github.com wrote:

with the rack-mini-profiler gem installed, I see this error on the console when I run bundle exec teaspoon:

Started GET "/teaspoon/mini-profiler-resources/includes.js?v=898a13ca6797c6bc1fee313e17d388b0" for 127.0.0.1 at 2014-06-07 21:38:47 -0700 Processing by Teaspoon::SuiteController#hook as JS Parameters: {"v"=>"898a13ca6797c6bc1fee313e17d388b0", "suite"=>"mini-profiler-resources", "hook"=>"includes"} Completed 500 Internal Server Error in 2ms SyntaxError: Parse error I haven't been able to figure out how to configure rack-mini-profiler not to run when teaspoon tests are being run, but this problem would be solved if teaspoon didn't run tests in the development environment. RAILS_ENV=test bundle exec teaspoon works fine.

— Reply to this email directly or view it on GitHub.