invo-sporknife 0.1.0.2 → 0.1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+
3
+
4
+ require 'drb'
5
+ DRb.start_service("druby://127.0.0.1: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
+
@@ -72,6 +72,7 @@ module Spork
72
72
  Spork.using_spork!
73
73
  run_strategy = Spork::RunStrategy.factory(test_framework)
74
74
  return(false) unless run_strategy.preload
75
+ puts "###########################"
75
76
  Spork::Server.run(:port => @options[:port] || test_framework.default_port, :run_strategy => run_strategy)
76
77
  return true
77
78
  end
@@ -0,0 +1,18 @@
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
+ Object.send(:remove_const, :STDOUT); Object.send(:const_set, :STDOUT, stdout)
7
+ require 'test/unit/autorunner'
8
+ r = Test::Unit::AutoRunner.new(true)
9
+ exit(false) unless r.process_args(argv)
10
+ r.run
11
+ rescue => e
12
+ puts "-"*30
13
+ puts "Error executing #{argv.join(' ')}"
14
+ puts e.message
15
+ puts e.backtrace
16
+ puts "-"*30
17
+ end
18
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: invo-sporknife
3
3
  version: !ruby/object:Gem::Version
4
- hash: 67
4
+ hash: 65
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
9
  - 0
10
- - 2
11
- version: 0.1.0.2
10
+ - 3
11
+ version: 0.1.0.3
12
12
  platform: ruby
13
13
  authors:
14
14
  - gten
@@ -25,6 +25,7 @@ email:
25
25
  - geetan123321@gmail.com
26
26
  executables:
27
27
  - sporknife
28
+ - testdrb
28
29
  extensions:
29
30
  - ext/mkrf_conf.rb
30
31
  extra_rdoc_files:
@@ -55,6 +56,7 @@ files:
55
56
  - lib/spork/server.rb
56
57
  - lib/spork/test_framework/cucumber.rb
57
58
  - lib/spork/test_framework/rspec.rb
59
+ - lib/spork/test_framework/test_unit.rb
58
60
  - lib/spork/test_framework.rb
59
61
  - lib/spork.rb
60
62
  - assets/bootstrap.rb
@@ -86,6 +88,7 @@ files:
86
88
  - spec/support/fake_framework.rb
87
89
  - spec/support/fake_run_strategy.rb
88
90
  - bin/sporknife
91
+ - bin/testdrb
89
92
  - ext/mkrf_conf.rb
90
93
  has_rdoc: true
91
94
  homepage: http://github.com/gten/invo-sporknife