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.
source to share
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
source to share