Comments (53)
+1
from spork.
Yes please :<
from spork.
+1
This really a needed thing to me, since I need to test my features (Cucumber) with Watir/IE :-(
from spork.
+1 - we need this too for a project. I can help (hopefully) with the coding
from spork.
+1
The kicker really is that with windows I think you'll need to forward all your stdin/stderr output across TCP sockets back to the host. But it should work :)
from spork.
This is actually already done (stdin / sterr output over tcp sockets). DRb does some magic to let you do this. (referring to Roger's comment)
I'm really excited to get started on this. I've been very swamped with my preparations for #LSRC though (you have no idea how much work it is to prepare a measly 6 hours worth of training). So... excited to get back to this when I get back.
from spork.
Oh nice. I suppose for now windows users can use cygwin--that doesn't help me too much since I use normal Test::Unit tests, but hey, it's one step closer to coding bliss :)
-r
from spork.
+1 working in windows would be awesome, feature runs are slooow - might have to resort to spec_server for now
from spork.
+1
from spork.
Getting much closer. The RunStrategy extraction has been completed, so now one would just need to implement the Magazine RunStrategy and it'll be done!
from spork.
I'll be back at the project next week (although we have switched to JRuby completely) -- and I'll take a look if I can work on this
from spork.
ok - jruby is on the radar as well. Can be supported via forking strategy using FFI on POSIX systems, and windows sytem via magazine strategy.
from spork.
Just a sidenote: If anyone has experience with forking for windows/jruby, the parallel and with it the parallel_specs projects are in need of windows/jruby forking too...
from spork.
plz
from spork.
@grosser - as far as I know, ruby on windows doesn't support Kernel.fork. You will need to fire up separate processes, and communicate with them.
from spork.
It'd be a huge plus for me and my team as well.
Is it correct to assume that because Kernel.fork is implemented in Ruby, that running Cygwin won't help if Cygwin is pointing to a Win32 Ruby interpreter?
Let me know if/how I can help.
from spork.
Another vote to get this working.
from spork.
Please see the wiki page: http://wiki.github.com/timcharper/spork/windowssupport
I've outlined what's needed to do, and I've architected spork so this will be possible.
If you're interested in implementing it, I'm happy to offer assistance.
Tim
from spork.
+1
from spork.
+1 Using Windows at work. Hate slow tests :)
from spork.
If anybody's adventurous they could try my fork
http://github.com/rdp/spork
which theoretically works with windows (and give me feedback/feature requests...)
-r
from spork.
+1
from spork.
I added a fork (http://wiki.github.com/Milhouse/spork/) which adds a preliminary "magazine" strategy for Windows. It's certainly a beta, but it does work with both Rspec and Cucumber so far.
from spork.
Milhouse, Roger Pack, this is awesome! Way to go guys!
from spork.
+1
from spork.
merged in!
from spork.
I think you could use popen and avoid the MRI dependency (?)
from spork.
that's a great idea, I was wondering about that. Milhouse, what do you think?
from spork.
Hmm, the newest gemspec file does not include magazine strategy files, please regenerate it a and push a new version to gemcutter since this is unusable at the moment. Anyways I was able to rebuild the gem locally and seems to work well. Thanks.
from spork.
Paciencia!
:)
It's "merged in", not released yet.
from spork.
Sorry for all the impatient disturbance.
from spork.
It might be a way to let JRuby join the party. I'd seen popen (and it's cousins popen3, popen4) at http://devver.net/blog/2009/10/ruby-subprocesses-part_3/ I wasn't sure it would work, so I stuck with the win-32/process library. Also, I had to change the current working directory (cwd). I'm not sure if popen has this as an option. I'll take a look, but it would early next week before I have time. Thanks again, Roger.
from spork.
I'm not an expert on processes and pipes. The reason I used the win32-process gem was to create a new process that returned a PID and continued on it's merry way independent of the parent process. popen and related apis seem to expect the parent process to wait for the child to finish. There may be a way to do what I need, but it's not clear to me.
There is a new call in Ruby 1.9 that does this. Process.spawn. It fires off a new process and returns the PID. It allows the working directory to be set. It works in the edge JRuby 1.5 using Ruby 1.9.2. The PTY.spawn in Ruby 1.8 has similar functionality, but doesn't work in Windows. I'm going to experiment to see how this might work.
from spork.
you can probably just spawn off a new thread to wait on the popen thread.
from spork.
+1
Would be very handy
jet
from spork.
+1
thank!!
from spork.
can we close this?
from spork.
I think it is closed. People keep on commenting on it, however :S. okay people: it's closed! It's been done! No more commenting!
We should probably open up a new ticket for Java support.
from spork.
but exist a version for windows?
from spork.
yes! :)
from spork.
where i can download?
from spork.
gem install spork.
from spork.
when i do that show me this error:
Error installing spork:
ERROR: Failed to build gem native extension.
from spork.
can you post the make.out file? full screen shot? any and all details will be helpful. Use jing to record and share a quick screencast, if possible.
from spork.
the gem_make.out:
"H:/Rodrigo Guerrero/RubyApp/Ruby187/bin/ruby.exe" mkrf_conf.rb
Actually, there aren't any native extensions. I'm just dynamically installing dependencies based off of your operating system
installing windows dependencies
"H:/Rodrigo Guerrero/RubyApp/Ruby187/bin/ruby.exe" -rubygems H:/Rodrigo Guerrero/RubyApp/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake RUBYARCHDIR="C:/Documents and Settings/Usuario/.bundle/ruby/1.8/gems/spork-0.8.4/lib" RUBYLIBDIR="C:/Documents and Settings/Usuario/.bundle/ruby/1.8/gems/spork-0.8.4/lib"
H:/Rodrigo Guerrero/RubyApp/Ruby187/bin/ruby.exe: No such file or directory -- H:/Rodrigo (LoadError)
from spork.
ahh. I think that is something of a bug in rubygems (doesn't handle spaces in the dir name). I'll report it there if there are no objections to me doing so.
from spork.
But i do without space for test:
"H:/Rodrig1/RubyApp/Ruby187/bin/ruby.exe" -rubygems H:/Rodrig1/RubyApp/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake RUBYARCHDIR="C:/Docume~1/Usuario/.bundle/ruby/1.8/gems/spork-0.8.4/lib" RUBYLIBDIR="C:/Documents and Settings/Usuario/.bundle/ruby/1.8/gems/spork-0.8.4/lib"
but show me other error:
No examples matching ./spec/*_/__spec.rb could be found
from spork.
that might be a real bug...anybody know where the root cause of that one might be found?
from spork.
installs for me with 1.8.7 from http://rubyinstaller.org/downloads/
D:\installs\a space\ruby-1.8.7-p249-i386-mingw32-1\ruby-1.8.7-p249-i386-mingw32\bin>gem install spork Building native extensions. This could take a while... Successfully installed spork-0.8.4 1 gem installed because of new gem installation recreating all faster_rubygems caches faster_rubygems: creating caches ..
Not sure about the other one though...
from spork.
I have install rails 3.0.0.beta.4
from spork.
upload your files somewhere and I can test it
from spork.
give me a mail where send you.
Thank
from spork.
from spork.
Related Issues (20)
- save_and_open_page and spork, spork is loosing test suite / output HOT 7
- issue using spork with rails4 HOT 1
- Spork doesn't support custom features/ directory
- spork puts "Done." but didn't finish testing HOT 2
- Is this project still maintained? HOT 2
- With jruby, prefork runs for every test run and makes test slow HOT 3
- Problem with loading file - cannot load such file -- vcr_helper (LoadError)
- Is it possible to tell spork to connect to a DB other than the normal test DB? HOT 1
- No RSpec output HOT 1
- Output has been changed with RSpec 2.99.0.beta1 HOT 3
- Cannot run specific spec (spork runs all specs)
- RSpec + Spork on Win give no output HOT 9
- rails4 rails-observers gem causes observed models to get loaded at startup
- File load times appear to be increasing from when spork was initialized
- rspec-rails 3.0 support? HOT 4
- Cannot run spork with updated Rails4/RSpec3 HOT 6
- Spork / drb shows Connection refused
- spork can't run correctly ,it shows in 'lookup_ring_any' : : RingNotFoundRingNotFound ( RuntimeError() RuntimeError
- warning: assigned but unused variable - method_name_with_spork
- Your Troubleshooting Link is off at Readme
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spork.