minitest-server 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: cc85a24a917ecfd5b4c9aa36d62d4350adb9b308
4
+ data.tar.gz: 0f86bd790989cd3c4952ebe753664d28d475af17
5
+ SHA512:
6
+ metadata.gz: 89eb711f4775fd1eea36f74bc22d7dda7d11cec3f14201638eec506fed87d28f5cb22c8b02e2180d14d3b2220b8cda6fe00759bd27890d50cabbdea0bba33ee7
7
+ data.tar.gz: f43fd7ab6536f18e82a25280e03da539020dee1606290d5f9d1f089f95380e5898616690bc7fcf98e7194625d63d6de5952350d3067c56bcbeff83e8d51b7ec9
@@ -0,0 +1 @@
1
+ [&e}����,h���p�|����%nu�9')^�����nlj�ay*o5K�*g�4�F?�<������d> ��������PfN��;b2P�aR���V[{I;��\쬘��+�<:��?l&����� �<- �=�jW�~�GtSuL1��XB. �G���5X;� �;1$Ɂ0����h|m�C�akE���-y�����r������?@r��z��p]��cADK��f�G��8�l����wG��ް2J�m>�
Binary file
@@ -0,0 +1,26 @@
1
+ # -*- ruby -*-
2
+
3
+ require "autotest/restart"
4
+
5
+ Autotest.add_hook :initialize do |at|
6
+ at.testlib = "minitest/autorun"
7
+ at.add_exception "tmp"
8
+
9
+ # at.extra_files << "../some/external/dependency.rb"
10
+ #
11
+ # at.libs << ":../some/external"
12
+ #
13
+ # at.add_exception "vendor"
14
+ #
15
+ # at.add_mapping(/dependency.rb/) do |f, _|
16
+ # at.files_matching(/test_.*rb$/)
17
+ # end
18
+ #
19
+ # %w(TestA TestB).each do |klass|
20
+ # at.extra_class_map[klass] = "test/test_misc.rb"
21
+ # end
22
+ end
23
+
24
+ # Autotest.add_hook :run_command do |at|
25
+ # system "rake build"
26
+ # end
File without changes
@@ -0,0 +1,6 @@
1
+ === 1.0.0 / 2014-09-16
2
+
3
+ * 1 major enhancement
4
+
5
+ * Birthday!
6
+
@@ -0,0 +1,8 @@
1
+ .autotest
2
+ History.rdoc
3
+ Manifest.txt
4
+ README.rdoc
5
+ Rakefile
6
+ lib/minitest/server.rb
7
+ lib/minitest/server_plugin.rb
8
+ test/minitest/test_server.rb
@@ -0,0 +1,54 @@
1
+ = minitest-server
2
+
3
+ home :: https://github.com/seattlerb/minitest-server
4
+ rdoc :: http://docs.seattlerb.org/minitest-server
5
+
6
+ == DESCRIPTION:
7
+
8
+ minitest-server provides a client/server setup with your minitest
9
+ process, allowing your test run to send its results directly to a
10
+ handler.
11
+
12
+ == FEATURES/PROBLEMS:
13
+
14
+ * Written as a minitest plugin. Everything is automatic.
15
+ * Uses drb for all communication. Clean and easy!
16
+
17
+ == SYNOPSIS:
18
+
19
+ There really is nothing to show here as you don't really USE
20
+ minitest-server directly. See minitest-bisect and minitest-autotest
21
+ for real-world examples.
22
+
23
+ == REQUIREMENTS:
24
+
25
+ * minitest 5+
26
+
27
+ == INSTALL:
28
+
29
+ * sudo gem install minitest-server
30
+
31
+ == LICENSE:
32
+
33
+ (The MIT License)
34
+
35
+ Copyright (c) Ryan Davis, seattle.rb
36
+
37
+ Permission is hereby granted, free of charge, to any person obtaining
38
+ a copy of this software and associated documentation files (the
39
+ 'Software'), to deal in the Software without restriction, including
40
+ without limitation the rights to use, copy, modify, merge, publish,
41
+ distribute, sublicense, and/or sell copies of the Software, and to
42
+ permit persons to whom the Software is furnished to do so, subject to
43
+ the following conditions:
44
+
45
+ The above copyright notice and this permission notice shall be
46
+ included in all copies or substantial portions of the Software.
47
+
48
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
49
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
50
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
51
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
52
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
53
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
54
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,17 @@
1
+ # -*- ruby -*-
2
+
3
+ require "rubygems"
4
+ require "hoe"
5
+
6
+ Hoe.plugin :isolate
7
+ Hoe.plugin :seattlerb
8
+ Hoe.plugin :rdoc
9
+
10
+ Hoe.spec "minitest-server" do
11
+ developer "Ryan Davis", "ryand-ruby@zenspider.com"
12
+ license "MIT"
13
+
14
+ dependency "minitest", "~> 5.0"
15
+ end
16
+
17
+ # vim: syntax=ruby
@@ -0,0 +1,45 @@
1
+ require "drb"
2
+ require "tmpdir"
3
+ require "minitest"
4
+
5
+ class Minitest::Server
6
+ VERSION = "1.0.0"
7
+
8
+ TOPDIR = Dir.pwd + "/"
9
+
10
+ def self.path pid = $$
11
+ "drbunix:#{Dir.tmpdir}/minitest.#{pid}"
12
+ end
13
+
14
+ def self.run client
15
+ DRb.start_service path, new(client)
16
+ end
17
+
18
+ def self.stop
19
+ DRb.stop_service
20
+ end
21
+
22
+ attr_accessor :client
23
+
24
+ def initialize client
25
+ self.client = client
26
+ end
27
+
28
+ def quit
29
+ self.class.stop
30
+ end
31
+
32
+ def start
33
+ client.minitest_start
34
+ end
35
+
36
+ def result file, klass, method, fails, assertions, time
37
+ file = file.sub(/^#{TOPDIR}/, "")
38
+
39
+ client.minitest_result file, klass, method, fails, assertions, time
40
+ end
41
+
42
+ def report
43
+ # do nothing
44
+ end
45
+ end
@@ -0,0 +1,42 @@
1
+ require "minitest"
2
+
3
+ module Minitest
4
+ @server = false
5
+
6
+ def self.plugin_server_options opts, options # :nodoc:
7
+ opts.on "--server=pid", Integer, "Connect to minitest server w/ pid." do |s|
8
+ @server = s
9
+ end
10
+ end
11
+
12
+ def self.plugin_server_init options
13
+ if @server then
14
+ require "minitest/server"
15
+ self.reporter << Minitest::ServerReporter.new(@server)
16
+ end
17
+ end
18
+ end
19
+
20
+ class Minitest::ServerReporter < Minitest::AbstractReporter
21
+ def initialize pid
22
+ DRb.start_service
23
+ uri = Minitest::Server.path(pid)
24
+ @mt_server = DRbObject.new_with_uri uri
25
+ super()
26
+ end
27
+
28
+ def start
29
+ @mt_server.start
30
+ end
31
+
32
+ def record result
33
+ r = result
34
+ c = r.class
35
+ file, = c.instance_method(r.name).source_location
36
+ @mt_server.result file, c.name, r.name, r.failures, r.assertions, r.time
37
+ end
38
+
39
+ def report
40
+ @mt_server.report
41
+ end
42
+ end
@@ -0,0 +1,10 @@
1
+ require "minitest/autorun"
2
+ require "minitest/server"
3
+
4
+ module TestMinitest; end
5
+
6
+ class TestMinitest::TestServer < Minitest::Test
7
+ def test_sanity
8
+ flunk "write tests or I will kneecap you"
9
+ end
10
+ end
metadata ADDED
@@ -0,0 +1,126 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: minitest-server
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Ryan Davis
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIDPjCCAiagAwIBAgIBATANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
14
+ ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
15
+ GRYDY29tMB4XDTEzMDkxNjIzMDQxMloXDTE0MDkxNjIzMDQxMlowRTETMBEGA1UE
16
+ AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
17
+ JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda
18
+ b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx
19
+ taCPaLmfYIaFcHHCSY4hYDJijRQkLxPeB3xbOfzfLoBDbjvx5JxgJxUjmGa7xhcT
20
+ oOvjtt5P8+GSK9zLzxQP0gVLS/D0FmoE44XuDr3iQkVS2ujU5zZL84mMNqNB1znh
21
+ GiadM9GHRaDiaxuX0cIUBj19T01mVE2iymf9I6bEsiayK/n6QujtyCbTWsAS9Rqt
22
+ qhtV7HJxNKuPj/JFH0D2cswvzznE/a5FOYO68g+YCuFi5L8wZuuM8zzdwjrWHqSV
23
+ gBEfoTEGr7Zii72cx+sCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
24
+ HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/hMA0GCSqGSIb3DQEBBQUAA4IB
25
+ AQCFZ7JTzoy1gcG4d8A6dmOJy7ygtO5MFpRIz8HuKCF5566nOvpy7aHhDDzFmQuu
26
+ FX3zDU6ghx5cQIueDhf2SGOncyBmmJRRYawm3wI0o1MeN6LZJ/3cRaOTjSFy6+S6
27
+ zqDmHBp8fVA2TGJtO0BLNkbGVrBJjh0UPmSoGzWlRhEVnYC33TpDAbNA+u39UrQI
28
+ ynwhNN7YbnmSR7+JU2cUjBFv2iPBO+TGuWC+9L2zn3NHjuc6tnmSYipA9y8Hv+As
29
+ Y4evBVezr3SjXz08vPqRO5YRdO3zfeMT8gBjRqZjWJGMZ2lD4XNfrs7eky74CyZw
30
+ xx3n58i0lQkBE1EpKE0lFu/y
31
+ -----END CERTIFICATE-----
32
+ date: 2014-09-17 00:00:00.000000000 Z
33
+ dependencies:
34
+ - !ruby/object:Gem::Dependency
35
+ name: minitest
36
+ requirement: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '5.0'
41
+ type: :runtime
42
+ prerelease: false
43
+ version_requirements: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '5.0'
48
+ - !ruby/object:Gem::Dependency
49
+ name: rdoc
50
+ requirement: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '4.0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '4.0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: hoe
64
+ requirement: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: '3.12'
69
+ type: :development
70
+ prerelease: false
71
+ version_requirements: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: '3.12'
76
+ description: |-
77
+ minitest-server provides a client/server setup with your minitest
78
+ process, allowing your test run to send its results directly to a
79
+ handler.
80
+ email:
81
+ - ryand-ruby@zenspider.com
82
+ executables: []
83
+ extensions: []
84
+ extra_rdoc_files:
85
+ - History.rdoc
86
+ - Manifest.txt
87
+ - README.rdoc
88
+ files:
89
+ - .autotest
90
+ - .gemtest
91
+ - History.rdoc
92
+ - Manifest.txt
93
+ - README.rdoc
94
+ - Rakefile
95
+ - lib/minitest/server.rb
96
+ - lib/minitest/server_plugin.rb
97
+ - test/minitest/test_server.rb
98
+ homepage: https://github.com/seattlerb/minitest-server
99
+ licenses:
100
+ - MIT
101
+ metadata: {}
102
+ post_install_message:
103
+ rdoc_options:
104
+ - --main
105
+ - README.rdoc
106
+ require_paths:
107
+ - lib
108
+ required_ruby_version: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - '>='
111
+ - !ruby/object:Gem::Version
112
+ version: '0'
113
+ required_rubygems_version: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ requirements: []
119
+ rubyforge_project:
120
+ rubygems_version: 2.4.1
121
+ signing_key:
122
+ specification_version: 4
123
+ summary: minitest-server provides a client/server setup with your minitest process,
124
+ allowing your test run to send its results directly to a handler.
125
+ test_files:
126
+ - test/minitest/test_server.rb
@@ -0,0 +1 @@
1
+ ��.ʿSa코�Hz�