Mar 12, 2007

Getting Closer to Using rSpec with NetBeans

I've gotten as far as running rSpec via JRuby outside of NetBeans. After I installed the NetBean Ruby components, I installed the rSpec gem. This created the .netbeans/dev/jruby-0.9.2 folder for me in my home directory, with the lib/ruby/gems/1.8/gems/rspec-0.8.2 subfolder. From the .netbeans/dev/jruby-0.9.2 directory (or after setting JRUBY_HOME) I can then run rspec:

bin/spec <COMMAND LINE OPTIONS>
Great. This works. Although, any practical solution is going to have to involve keeping JRuby's JVM running - the launch time is just too painful. From here I seem to have a few directions to try:
  • Find the rSpec / Netbeans integration (assuming it exists - I've found nothing so far)
  • Get autotest to run my specs continuously in a console
  • Make it easy to run spec from the JRuby IRB (so that I don't have to start a new JVM each time)
Any help with any of these would be much appreciated.

PS Thanks to Chris Oliver Nutter for pointing me in the right direction with installing gems in NetBeans.

4 comments:

cleve said...

Hey Merlyn, like the colour scheme. Well I have a simple question for you now that you've done a bit of reading around the Grails stuff. Which do you prefer: Rails or Grails?

I have to write a web based app and am torn. Any suggestions?

cleve said...

PS: I've moved http://www.clevegibbon.com/blog.

Merlyn Albery-Speyer said...

The follow up is here: http://curious-attempt-bunny.blogspot.com/2007/03/rails-vs-grails.html

Cliff said...

Getting even closer! I just published GSpec to the groovy project as a module ten minutes ago! It works from the command line and I think it builds a jar correctly. I also have JUnit integration about 85% working. A few more hacks and it'll be something we can all enjoy!