mumuki-wollok-runner 1.0.2 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/metadata_hook.rb +8 -1
- data/lib/test_hook.rb +7 -3
- data/lib/version.rb +3 -0
- data/lib/wollok_runner.rb +2 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a864802c5cf3eaf7b91c7b7d3bebfc3f2a6e8a8c40bffd4f0e25c203ff78974e
|
4
|
+
data.tar.gz: f6439db8009d994a78ab9ad55eab64320a2f102229e560b9afba0f65eff297a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41fac63f0e7cbc936f3f1516f4a099f5ed69a80d9d244085a47876a141d1f2c6b70db76ec53e4a2a114ef88e2c28c9f6b931a72368dd6890d6b09d712b8c17a4
|
7
|
+
data.tar.gz: 0645fb2409288f7925d7454f9518dbf317abae8bae03e4bdd50dfa70dba518c6d5d0f7b167bd4e2b56530abf377322d28d67e828d2ca597121759fb30ece77fd
|
data/lib/metadata_hook.rb
CHANGED
@@ -9,7 +9,14 @@ class WollokMetadataHook < Mumukit::Hook
|
|
9
9
|
},
|
10
10
|
test_framework: {
|
11
11
|
name: 'builtin',
|
12
|
-
test_extension: 'wtest'
|
12
|
+
test_extension: 'wtest',
|
13
|
+
template: <<wollok
|
14
|
+
describe "{{ test_template_group_description }}"{
|
15
|
+
test "{{ test_template_sample_description }}" {
|
16
|
+
assert.that(true)
|
17
|
+
}
|
18
|
+
}
|
19
|
+
wollok
|
13
20
|
}}
|
14
21
|
end
|
15
22
|
end
|
data/lib/test_hook.rb
CHANGED
@@ -4,7 +4,7 @@ class WollokTestHook < WollokHook
|
|
4
4
|
if errored? result
|
5
5
|
[extract_compilation_errors(result), :errored]
|
6
6
|
elsif result['tests'].present?
|
7
|
-
[result['tests'].map { |it| transform_test_result(it) }]
|
7
|
+
[result['tests'].map { |it| transform_test_result(result, it) }]
|
8
8
|
elsif result['runtimeErrors'].present?
|
9
9
|
[result['runtimeErrors'].to_s, :failed]
|
10
10
|
elsif result['consoleOutput'].present?
|
@@ -14,8 +14,12 @@ class WollokTestHook < WollokHook
|
|
14
14
|
end
|
15
15
|
end
|
16
16
|
|
17
|
-
def transform_test_result(result)
|
18
|
-
[result['name'],
|
17
|
+
def transform_test_result(result, test_result)
|
18
|
+
[prefix_suite_if_given(result, test_result['name']), test_result['state'] == 'passed' ? :passed : :failed, test_result['error'].try{|i|i['message']}]
|
19
|
+
end
|
20
|
+
|
21
|
+
def prefix_suite_if_given(result, test_result)
|
22
|
+
(result['suite'].present? ? "#{result['suite']} " : "") + test_result
|
19
23
|
end
|
20
24
|
|
21
25
|
def program_type
|
data/lib/version.rb
ADDED
data/lib/wollok_runner.rb
CHANGED
@@ -5,7 +5,8 @@ Mumukit.configure do |config|
|
|
5
5
|
config.stateful = true
|
6
6
|
end
|
7
7
|
|
8
|
+
require_relative './version'
|
8
9
|
require_relative './wollok_hook'
|
9
10
|
require_relative './test_hook'
|
10
11
|
require_relative './query_hook'
|
11
|
-
require_relative './metadata_hook'
|
12
|
+
require_relative './metadata_hook'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mumuki-wollok-runner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Franco Leonardo Bulgarelli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mumukit
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '1
|
103
|
+
version: '3.1'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '1
|
110
|
+
version: '3.1'
|
111
111
|
description:
|
112
112
|
email:
|
113
113
|
- franco@mumuki.org
|
@@ -118,6 +118,7 @@ files:
|
|
118
118
|
- lib/metadata_hook.rb
|
119
119
|
- lib/query_hook.rb
|
120
120
|
- lib/test_hook.rb
|
121
|
+
- lib/version.rb
|
121
122
|
- lib/wollok_hook.rb
|
122
123
|
- lib/wollok_runner.rb
|
123
124
|
homepage: http://github.com/mumuki/mumuki-wollok-server
|
@@ -139,8 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
140
|
- !ruby/object:Gem::Version
|
140
141
|
version: '0'
|
141
142
|
requirements: []
|
142
|
-
|
143
|
-
rubygems_version: 2.4.5
|
143
|
+
rubygems_version: 3.0.3
|
144
144
|
signing_key:
|
145
145
|
specification_version: 4
|
146
146
|
summary: Wollok Runner for Mumuki
|