mumuki-minitest-runner 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/metadata_hook.rb +16 -0
- data/lib/minitest_runner.rb +12 -0
- data/lib/test_hook.rb +23 -0
- metadata +131 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 471401130b2d055194d0650b003e6bcf30493a94
|
4
|
+
data.tar.gz: fa610177e9e9b5faf982a70a6a29838c0d94017d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: adc1bf045337cb6b857e462c925177429e4a0110aaa8e8387711b01195d7a41d8990345ec6698f1f4edec4864483402846a51573441be5c0d9978fc9ad12694d
|
7
|
+
data.tar.gz: 33b04c0354d2924a5c9765ba148664ae177df1170bb88e126d889efc1305af83099ef0b90c9333549dbe6f84617bf3815d4c630ae218622a3fb7173db475358d
|
@@ -0,0 +1,16 @@
|
|
1
|
+
class MinitestMetadataHook < Mumukit::Hook
|
2
|
+
def metadata
|
3
|
+
{language: {
|
4
|
+
name: 'ruby',
|
5
|
+
icon: {type: 'devicon', name: 'ruby'},
|
6
|
+
version: '2.0',
|
7
|
+
extension: 'rb',
|
8
|
+
ace_mode: 'ruby'
|
9
|
+
},
|
10
|
+
test_framework: {
|
11
|
+
name: 'minitest',
|
12
|
+
version: '5.9.0',
|
13
|
+
test_extension: '.yml'
|
14
|
+
}}
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'mumukit'
|
2
|
+
|
3
|
+
Mumukit.runner_name = 'minitest'
|
4
|
+
Mumukit.configure do |config|
|
5
|
+
config.docker_image = 'mumuki/mumuki-minitest-worker'
|
6
|
+
config.comment_type = Mumukit::Directives::CommentType::Ruby
|
7
|
+
config.structured = true
|
8
|
+
config.stateful = false
|
9
|
+
end
|
10
|
+
|
11
|
+
require_relative './metadata_hook'
|
12
|
+
require_relative './test_hook'
|
data/lib/test_hook.rb
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'yaml'
|
2
|
+
class MinitestTestHook < Mumukit::Templates::FileHook
|
3
|
+
isolated true
|
4
|
+
structured true
|
5
|
+
|
6
|
+
def tempfile_extension
|
7
|
+
'.yml'
|
8
|
+
end
|
9
|
+
|
10
|
+
def compile_file_content(request)
|
11
|
+
{'test' => YAML.load(request.test),
|
12
|
+
'extra' => request.extra,
|
13
|
+
'content' => request.content}.to_yaml
|
14
|
+
end
|
15
|
+
|
16
|
+
def command_line(filename)
|
17
|
+
"ruby multitest.rb #{filename} 2>&1"
|
18
|
+
end
|
19
|
+
|
20
|
+
def to_structured_result(result)
|
21
|
+
super['results']
|
22
|
+
end
|
23
|
+
end
|
metadata
ADDED
@@ -0,0 +1,131 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mumuki-minitest-runner
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Franco Leonardo Bulgarelli
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-09-28 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: mumukit
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.5'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.5'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.7'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.7'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.4'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.4'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: codeclimate-test-reporter
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: mumukit-bridge
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.3'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.3'
|
97
|
+
description:
|
98
|
+
email:
|
99
|
+
- franco@mumuki.org
|
100
|
+
executables: []
|
101
|
+
extensions: []
|
102
|
+
extra_rdoc_files: []
|
103
|
+
files:
|
104
|
+
- lib/metadata_hook.rb
|
105
|
+
- lib/minitest_runner.rb
|
106
|
+
- lib/test_hook.rb
|
107
|
+
homepage: http://github.com/mumuki/mumuki-minitest-server
|
108
|
+
licenses:
|
109
|
+
- MIT
|
110
|
+
metadata: {}
|
111
|
+
post_install_message:
|
112
|
+
rdoc_options: []
|
113
|
+
require_paths:
|
114
|
+
- lib
|
115
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - ">="
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '0'
|
120
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
requirements: []
|
126
|
+
rubyforge_project:
|
127
|
+
rubygems_version: 2.4.8
|
128
|
+
signing_key:
|
129
|
+
specification_version: 4
|
130
|
+
summary: Minitest Runner for Mumuki
|
131
|
+
test_files: []
|