Cucumber with rails on Windows

I am trying to use Cucumber for a Rails project on Windows. Unfortunately, the time it takes to run the script is BDD impossible. I understand this has a lot to do with the time that Rails loads under windows. Does anyone have any ideas on how I can speed up the process. for example, is it possible to call Cucumber inside the Rails console to avoid loading delays.

Greetings.

+2


source to share


3 answers


Windows is now supported by Spork! http://wiki.github.com/timcharper/spork/

Spork is a test server that can be called through DRb.

On POSIX systems, Spork uses Kernel.fork.

On Windows, forking is not an option, so Spork creates a pool of pre-installed processes that avoids the huge startup time of Rails.



At the moment it only works with win32 / mingw Ruby because it depends on the pearl of the win32 process.

Many thanks to the Spork Guys for doing a great job and making Cucumber BDD possible for Windows.

Please note that I only tried Spork with

  • Windows XP
  • Rails 2.3.5
  • Ruby 1.9.1 from rubyinstaller.org
+3


source


Have you tried using cucumber without db: test: prepare? How about setting t.fork = true # set to false to increase performance (as in / lib / tasks / cucumber.rake)



0


source


Is this just my machine or is it running too little on the Spork console output on Windows?

0


source







All Articles