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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 5a6733a861de3e4199272d1a810e672ced8c108c
4
- data.tar.gz: d429672cba3031121de0b701014061f14c2763cd
2
+ SHA256:
3
+ metadata.gz: a864802c5cf3eaf7b91c7b7d3bebfc3f2a6e8a8c40bffd4f0e25c203ff78974e
4
+ data.tar.gz: f6439db8009d994a78ab9ad55eab64320a2f102229e560b9afba0f65eff297a8
5
5
  SHA512:
6
- metadata.gz: 8ef79d3770440429fea57064f8a97b4ff5896f8802442d86a45ac64a17a067ede11d345e8eaa658b2ba2dd96aa2bb0a41b89d828eb2cd0785620e89ef7eb9f72
7
- data.tar.gz: dd1e4ecad360961ed212d578d5544ab08af17f672e1b260da6d2583765449ffcdd7f3c685579f0b6b5551443db542b8414b8d0493a1f72f210669692736fe101
6
+ metadata.gz: 41fac63f0e7cbc936f3f1516f4a099f5ed69a80d9d244085a47876a141d1f2c6b70db76ec53e4a2a114ef88e2c28c9f6b931a72368dd6890d6b09d712b8c17a4
7
+ data.tar.gz: 0645fb2409288f7925d7454f9518dbf317abae8bae03e4bdd50dfa70dba518c6d5d0f7b167bd4e2b56530abf377322d28d67e828d2ca597121759fb30ece77fd
@@ -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
@@ -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'], result['state'] == 'passed' ? :passed : :failed, result['error'].try{|i|i['stackTrace']}]
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
@@ -0,0 +1,3 @@
1
+ module WollokVersionHook
2
+ VERSION = '1.1.0'
3
+ end
@@ -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.2
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: 2017-06-15 00:00:00.000000000 Z
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.3'
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.3'
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
- rubyforge_project:
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