relevance / blue-ridge

Framework for JavaScript Testing (currently a Rails Plugin)
http://groups.google.com/group/blueridgejs
MIT License
480 stars 40 forks source link

Make it work with ZenTest autotest #16

Closed bartaz closed 15 years ago

bartaz commented 15 years ago

Blue-Ridge does a great job with testing JavaScript (even from command line) but it would be awesome if it would work with ZenTest's autotest, so the tests will automatically re-run when .js files will be edited. Is it possible?

jasonrudolph commented 15 years ago

We don't have any immediate plans to add this feature, but I agree that this type of functionality would be nice to have.

If/when we do add this kind of functionality, it's more likely that we'll add support for beholder. We'd welcome a patch that provides ZenTest autotest support, but we use beholder, so it's unlikely that we'd build ZenTest autotest support for ourselves.

drnic commented 15 years ago

You could try using rstakeout to trigger "rake test:js TEST=..." if any files change

drnic commented 15 years ago

@jasonrudolph - what is your setup for beholder? Perhaps put this in a wiki page?

jasonrudolph commented 15 years ago

@drnic - We don't use beholder for Blue Ridge yet. If/when we do use beholder with Blue Ridge, we'll be sure to add some docs so that others can do the same.

bartaz commented 15 years ago

@drnic - Thanks for a tip, I tried rstakeout and it works like a charm! I even got it giving me nice notifications when tests fail or pass.

karnowski commented 15 years ago

@drnic & @bartaz: could someone send me a quick write-up of how you're using rstakeout with BlueRidge?