TwP/turn — Issue #70: Turn with Spork and Test::Unit - Test Either not running
Author: taelor
Created: 2012-01-24 23:12:37+00:00
State: open

I've been working getting our integration tests to run using Test::Unit, Capybara, Spork, and Guard. We've been using Turn and love the output when running tests.

But it takes us 15 seconds (on a patched ruby 1.9.3) just to boot Rails, so Spork really helps cut down on that testing time.

Below you can see the three cases. We know that each of Spork and turn are working when run without the other being turned on, but when you enable both of them, the tests don't actually run. I have even made test that purposely fails, but it still shows "pass: 0, fail: 0, error: 0 total: 0 tests with 0 assertions in 0.004036 seconds" on one that should most definitely fail. Even tests that should be throwing exceptions are not.

If you could point me in the right direction on what I would need to do to get the two tool to work together, I would love to work on this for you.

```
###############################################################
# Turn : false
# Spork : true
###############################################################
bash$ testdrb -Itest test/integration/nurse_notes_test.rb
Loaded suite NurseNotesTest
Started

Finished in 4.351769 seconds.

2 tests, 3 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
0% passed

0.46 tests/s, 0.69 assertions/s

###############################################################
# Turn : true
# Spork : false
###############################################################
bash$ ruby -Itest test/integration/nurse_notes_test.rb

LOADED SUITE test,test/integration,test/support,test/unit

ActionController::TestCase
ActionDispatch::IntegrationTest
ActiveRecord::TestCase
ActiveSupport::TestCase
NurseNotesTest
test_nurse_note_has_show PASS
test_nurse_note_has_summary PASS
Test::Unit::TestCase
==============================================================================
pass: 2, fail: 0, error: 0
total: 2 tests with 3 assertions in 2.797512 seconds
==============================================================================

###############################################################
# Turn : true
# Spork : true
###############################################################
bash$ testdrb -Itest test/integration/nurse_notes_test.rb
LOADED SUITE test/integration

==============================================================================
pass: 0, fail: 0, error: 0
total: 0 tests with 0 assertions in 0.004036 seconds
==============================================================================
```