Comments (7)
BTW my branch is in an intermediate state, as I was trying to port Spork's features to use Aruba. Next step is to try Aslak's forking_children Aruba branch.
from spork.
Great on porting the features to Aruba! But as for the debugger features, I think the two-way communication is needed. I think we'll need Popen3 at the very least.
I think it would be best to implement Spork::TestFramework::RSpec2 inside of RSpec. I'm surprised that you're finding that Spork does the framework detection before checking loading TestFramework subclasses from other gems. We'll have to check into that.
As for being limited to helper file detection only... one can just override self.available? to change this behavior.
from spork.
Getting closer on Rspec 2.0 on my side. I've got a rails 3 branch in the works, and am working towards getting it working.
from spork.
Cool! I don't have time to work on it unfortunately but let me know if you have any questions.
from spork.
fair enough, it's taken me forever to get motivated enough to work on it. I knew it was going to sink a score of hours.
In my rails3 branch, I'm getting an issue that seems to be on the rspec side. Here's the output:
expected "Exception encountered: #<NoMethodError: undefined method `configure' for [\"spec/did_it_work_spec.rb\"]:Array>
backtrace:
/Users/timcharper/.rvm/gems/ruby-1.8.7-p249/gems/rspec-core-2.0.0.beta.16/lib/rspec/core/command_line.rb:11:in `run'
/Users/timcharper/.rvm/gems/ruby-1.8.7-p249/gems/rspec-core-2.0.0.beta.16/lib/rspec/monkey/spork/test_framework/rspec.rb:4:in `run_tests'
/Users/timcharper/projects/spork/lib/spork/run_strategy/forking.rb:13:in `run'
/Users/timcharper/projects/spork/lib/spork/forker.rb:21:in `initialize'
/Users/timcharper/projects/spork/lib/spork/forker.rb:18:in `fork'
/Users/timcharper/projects/spork/lib/spork/forker.rb:18:in `initialize'
/Users/timcharper/projects/spork/lib/spork/run_strategy/forking.rb:9:in `new'
/Users/timcharper/projects/spork/lib/spork/run_strategy/forking.rb:9:in `run'
/Users/timcharper/projects/spork/lib/spork/server.rb:47:in `run'
/Users/timcharper/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/drb/drb.rb:1558:in `__send__'
/Users/timcharper/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/drb/drb.rb:1558:in `perform_without_block'
/Users/timcharper/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/drb/drb.rb:1518:in `perform'
/Users/timcharper/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/drb/drb.rb:1592:in `main_loop'
/Users/timcharper/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/drb/drb.rb:1588:in `loop'
/Users/timcharper/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/drb/drb.rb:1588:in `main_loop'
/Users/timcharper/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/drb/drb.rb:1584:in `start'
/Users/timcharper/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/drb/drb.rb:1584:in `main_loop'
/Users/timcharper/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/drb/drb.rb:1433:in `run'
/Users/timcharper/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/drb/drb.rb:1430:in `start'
/Users/timcharper/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/drb/drb.rb:1430:in `run'
/Users/timcharper/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/drb/drb.rb:1350:in `initialize'
/Users/timcharper/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/drb/drb.rb:1630:in `new'
/Users/timcharper/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/drb/drb.rb:1630:in `start_service'
/Users/timcharper/projects/spork/lib/spork/server.rb:29:in `listen'
/Users/timcharper/projects/spork/lib/spork/server.rb:20:in `run'
/Users/timcharper/projects/spork/bin/../lib/spork/runner.rb:76:in `run'
/Users/timcharper/projects/spork/bin/../lib/spork/runner.rb:10:in `run'
/Users/timcharper/projects/spork/bin/spork:10
" to include "Specs successfully run within spork, and all initialization files were loaded" (Spec::Expectations::ExpectationNotMetError)
./features/steps/sandbox_steps.rb:94:in `/^the (error output|output) should contain "(.+)"$/'
features/rspec_rails_integration.feature:65:in `And the output should contain "Specs successfully run within spork, and all initialization files were loaded"'
It can be reproduced by checkout out my rails3 branch and running:
bundle install
bin/cucumber features/rspec_rails_integration.feature:35
That will show the error and generate the project. One can cd tmp/sandbox/temp_rails_project
and play with it further.
Any idea what's going on? Looks like here we initialize the CommandLine object with the provided arguments:
But then, that's eventually becomes "@options", which later has .configure requested from it.
http://github.com/rspec/rspec-core/blob/v2.0.0.beta.16/lib/rspec/core/command_line.rb#L5-11
from spork.
I had a conversation with David about the interface, he decided to change it so it passed an object of some sort, not just the args. Apparently this broke:
http://github.com/rspec/rspec-core/issues/closed#issue/61
However I haven't seen the new code so you might get a better answer from David - he might know what's going on off the top of his head. Sorry I can't be more help.
from spork.
it's done. Thanks!
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.