spork-testunit 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.textile ADDED
@@ -0,0 +1,7 @@
1
+ h1. Test::Unit support for Spork
2
+
3
+ This includes a plugin for spork to enable Test::Unit support for spork. It also comes with a very bare-bones drb client to run tests.
4
+
5
+ To use it, install the gem, then fire up spork in your project directory (the file test/test_helper.rb must exist to detect that Test::Unit is being used).
6
+
7
+ Then, once spork is running, invoke `testdrb test/your_test.rb` to run your tests under Spork.
data/bin/testdrb ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+
3
+
4
+ require 'drb'
5
+ DRb.start_service("druby://localhost:0") # this allows Ruby to do some magical stuff so you can pass an output stream over DRb.
6
+ test_server = DRbObject.new_with_uri("druby://127.0.0.1:8988")
7
+ result = test_server.run(ARGV, $stderr, $stdout)
8
+
@@ -0,0 +1,13 @@
1
+ class Spork::TestFramework::TestUnit < Spork::TestFramework
2
+ DEFAULT_PORT = 8988
3
+ HELPER_FILE = File.join(Dir.pwd, "test/test_helper.rb")
4
+
5
+ def run_tests(argv, stderr, stdout)
6
+ require 'test/unit/autorunner'
7
+ r = Test::Unit::AutoRunner.new(true)
8
+ exit(false) unless r.process_args(argv)
9
+ r.run
10
+ rescue
11
+ puts 'error'
12
+ end
13
+ end
metadata ADDED
@@ -0,0 +1,58 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: spork-testunit
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Tim Harper
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-09-12 00:00:00 -04:00
13
+ default_executable: testdrb
14
+ dependencies: []
15
+
16
+ description: Test Unit runner for spork
17
+ email:
18
+ - timcharper+spork@gmail.com
19
+ executables:
20
+ - testdrb
21
+ extensions: []
22
+
23
+ extra_rdoc_files:
24
+ - README.textile
25
+ files:
26
+ - bin/testdrb
27
+ - lib/spork/test_framework/test_unit.rb
28
+ - README.textile
29
+ has_rdoc: true
30
+ homepage: http://github.com/timcharper/spork-testunit
31
+ licenses: []
32
+
33
+ post_install_message:
34
+ rdoc_options:
35
+ - --charset=UTF-8
36
+ require_paths:
37
+ - lib
38
+ required_ruby_version: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: "0"
43
+ version:
44
+ required_rubygems_version: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: "0"
49
+ version:
50
+ requirements: []
51
+
52
+ rubyforge_project: spork-testunit
53
+ rubygems_version: 1.3.4
54
+ signing_key:
55
+ specification_version: 3
56
+ summary: spork-testunit
57
+ test_files: []
58
+