jejacks0n / teaspoon

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

Add support for middleman. #210

Closed jejacks0n closed 9 years ago

jejacks0n commented 10 years ago

At RailsConf 2014 there was a good talk by @bradgessler about Middleman. I think it would be useful to have a friendly way to use Teaspoon in Middleman.

gem 'teaspoon', require: 'teaspoon/middleman'

Teaspoon assumes that ActiveSupport is available, which works out well since Middleman has it as a dependency. The second is the generator, which should work pretty will with some abstractions since Thor is also available.. so in theory this won't be too hard, but there's some complexity that might exist that I don't know. This is where I wanted to capture the idea.

bradgessler commented 10 years ago

:+1:

Our team had to hook up a bunch of stuff up manually to get working acceptance tests. Something that works out of the box from a Gemfile would be one less thing to think about.

@steel or @mdiebolt may have ideas or opinions on how this could work.

steel commented 10 years ago

Teaspoon looks pretty nice! We currently use https://github.com/mrship/middleman-jasmine to run our JS tests. It's pretty straight forward but does leave a lot to be desired.

jejacks0n commented 10 years ago

I'm planning on working on this more, and have a branch I haven't pushed yet. But I had to put my dog down yesterday, and am feeling a little off. When I have more time I will get something working pushed.

JohnRiv commented 10 years ago

Sorry about your dog. Any update on this? Would you be willing to push the in-progress branch and mention what else needs to be done?

jejacks0n commented 10 years ago

No updates at this time, sorry.

Eptis commented 10 years ago

Any progress on this? Or any way I could help?

mikepack commented 9 years ago

@jejacks0n should we take a stab at this pre 1.0? What was holding it up before?

mikepack commented 9 years ago

Going to close this. After some thought, we won't be able to support support Middleman, Sinatra or any Rails-less environment until we do some major refactoring to pull Rails out of Teaspoon, which is non-trivial. This will eventually happen, but not for the foreseeable future.