vedeu 0.8.19 → 0.8.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/integrations/342_streams.rb +5 -16
- data/integrations/dsl_app_001.rb +8 -19
- data/integrations/dsl_app_002.rb +8 -20
- data/integrations/dsl_app_003.rb +8 -19
- data/integrations/dsl_app_004.rb +8 -19
- data/integrations/dsl_app_005.rb +8 -19
- data/integrations/dsl_app_006.rb +8 -19
- data/integrations/dsl_app_007.rb +8 -19
- data/integrations/dsl_app_008.rb +8 -19
- data/integrations/dsl_app_009.rb +8 -19
- data/integrations/dsl_app_010.rb +8 -19
- data/integrations/dsl_app_011.rb +8 -19
- data/integrations/dsl_app_012.rb +8 -19
- data/integrations/dsl_app_013.rb +8 -19
- data/integrations/dsl_app_014.rb +8 -19
- data/integrations/dsl_app_015.rb +8 -19
- data/integrations/dsl_app_016.rb +8 -19
- data/integrations/dsl_app_017.rb +8 -19
- data/integrations/dsl_app_018.rb +8 -19
- data/integrations/dsl_app_019.rb +8 -19
- data/integrations/dsl_app_020.rb +8 -19
- data/integrations/dsl_app_021.rb +8 -19
- data/integrations/dsl_app_022.rb +8 -19
- data/integrations/dsl_app_border_001.rb +8 -19
- data/integrations/dsl_app_border_002.rb +8 -19
- data/integrations/dsl_app_border_003.rb +8 -19
- data/integrations/dsl_app_border_004.rb +8 -19
- data/integrations/dsl_app_border_005.rb +8 -19
- data/integrations/dsl_app_border_006.rb +58 -0
- data/integrations/dsl_app_border_007.rb +58 -0
- data/integrations/dsl_app_border_008.rb +57 -0
- data/integrations/dsl_app_border_009.rb +57 -0
- data/integrations/dsl_app_border_010.rb +57 -0
- data/integrations/dsl_app_border_011.rb +57 -0
- data/integrations/expected/dsl_app_border_006.out +1 -0
- data/integrations/expected/dsl_app_border_007.out +1 -0
- data/integrations/expected/dsl_app_border_008.out +1 -0
- data/integrations/expected/dsl_app_border_009.out +1 -0
- data/integrations/expected/dsl_app_border_010.out +1 -0
- data/integrations/expected/dsl_app_border_011.out +1 -0
- data/integrations/test_runner.rb +60 -0
- data/integrations/test_runner.sh +11 -5
- data/lib/vedeu/version.rb +1 -1
- data/test/lib/vedeu/repositories/repositories_test.rb +18 -4
- data/test/lib/vedeu_test.rb +12 -0
- data/test/support/examples/material_colours_app.rb +0 -134
- data/vedeu.gemspec +1 -1
- metadata +17 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62b67286843b3aceb4b22f6a12d5199b056bafb3
|
4
|
+
data.tar.gz: 3098d142e85e338a9e6465214dbd43d3a069d478
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ee697680d3dc9914bc8cddcd30f1c997abef95a926b9d59d3a5712084ed08ea45038b22b8fefff3d589a949b76322d537561869f7fd72bca5de0e7035f8db6b
|
7
|
+
data.tar.gz: de91af4d5ab156df9a178320e1017735385aac20444afb1780282ed4a0c4946580d00c3b304ea4796ad9c47fc4f05ae7000c549f471d8a42e8116f1ebfd52b34
|
data/integrations/342_streams.rb
CHANGED
@@ -5,6 +5,8 @@
|
|
5
5
|
require 'bundler/setup'
|
6
6
|
require 'vedeu'
|
7
7
|
|
8
|
+
TESTCASE = '342_streams'
|
9
|
+
|
8
10
|
class DSLApp
|
9
11
|
|
10
12
|
Vedeu.bind(:_initialize_) { Vedeu.trigger(:_refresh_) }
|
@@ -14,7 +16,7 @@ class DSLApp
|
|
14
16
|
debug!
|
15
17
|
log '/tmp/vedeu_views_dsl.log'
|
16
18
|
renderers(Vedeu::Renderers::Terminal.new(
|
17
|
-
filename:
|
19
|
+
filename: "/tmp/#{TESTCASE}.out",
|
18
20
|
write_file: true))
|
19
21
|
run_once!
|
20
22
|
standalone!
|
@@ -49,14 +51,6 @@ class DSLApp
|
|
49
51
|
end
|
50
52
|
end
|
51
53
|
|
52
|
-
def self.actual
|
53
|
-
File.read('/tmp/342_streams.out')
|
54
|
-
end
|
55
|
-
|
56
|
-
def self.expected
|
57
|
-
File.read(File.expand_path('../expected/342_streams.out', __FILE__))
|
58
|
-
end
|
59
|
-
|
60
54
|
def self.start(argv = ARGV)
|
61
55
|
Vedeu::Launcher.execute!(argv)
|
62
56
|
end
|
@@ -65,10 +59,5 @@ end # DSLApp
|
|
65
59
|
|
66
60
|
DSLApp.start
|
67
61
|
|
68
|
-
|
69
|
-
|
70
|
-
exit 0;
|
71
|
-
else
|
72
|
-
puts "#{__FILE__} \e[31mFailed.\e[39m"
|
73
|
-
exit 1;
|
74
|
-
end
|
62
|
+
load File.dirname(__FILE__) + '/test_runner.rb'
|
63
|
+
TestRunner.result(TESTCASE, __FILE__)
|
data/integrations/dsl_app_001.rb
CHANGED
@@ -5,6 +5,8 @@
|
|
5
5
|
require 'bundler/setup'
|
6
6
|
require 'vedeu'
|
7
7
|
|
8
|
+
TESTCASE = 'dsl_app_001'
|
9
|
+
|
8
10
|
class DSLApp
|
9
11
|
|
10
12
|
Vedeu.bind(:_initialize_) { Vedeu.trigger(:_refresh_) }
|
@@ -15,11 +17,11 @@ class DSLApp
|
|
15
17
|
log '/tmp/vedeu_views_dsl.log'
|
16
18
|
renderers [
|
17
19
|
Vedeu::Renderers::Terminal.new(
|
18
|
-
filename:
|
20
|
+
filename: "/tmp/#{TESTCASE}.out",
|
19
21
|
write_file: true),
|
20
|
-
# Vedeu::Renderers::JSON.new(filename:
|
21
|
-
# Vedeu::Renderers::HTML.new(filename:
|
22
|
-
# Vedeu::Renderers::Text.new(filename:
|
22
|
+
# Vedeu::Renderers::JSON.new(filename: "/tmp/#{TESTCASE}.json"),
|
23
|
+
# Vedeu::Renderers::HTML.new(filename: "/tmp/#{TESTCASE}.html"),
|
24
|
+
# Vedeu::Renderers::Text.new(filename: "/tmp/#{TESTCASE}.txt"),
|
23
25
|
]
|
24
26
|
run_once!
|
25
27
|
standalone!
|
@@ -34,14 +36,6 @@ class DSLApp
|
|
34
36
|
end
|
35
37
|
end
|
36
38
|
|
37
|
-
def self.actual
|
38
|
-
File.read('/tmp/dsl_app_001.out')
|
39
|
-
end
|
40
|
-
|
41
|
-
def self.expected
|
42
|
-
File.read(File.expand_path('../expected/dsl_app_001.out', __FILE__))
|
43
|
-
end
|
44
|
-
|
45
39
|
def self.start(argv = ARGV)
|
46
40
|
Vedeu::Launcher.execute!(argv)
|
47
41
|
end
|
@@ -50,10 +44,5 @@ end # DSLApp
|
|
50
44
|
|
51
45
|
DSLApp.start
|
52
46
|
|
53
|
-
|
54
|
-
|
55
|
-
exit 0;
|
56
|
-
else
|
57
|
-
puts "#{__FILE__} \e[31mFailed.\e[39m"
|
58
|
-
exit 1;
|
59
|
-
end
|
47
|
+
load File.dirname(__FILE__) + '/test_runner.rb'
|
48
|
+
TestRunner.result(TESTCASE, __FILE__)
|
data/integrations/dsl_app_002.rb
CHANGED
@@ -5,6 +5,8 @@
|
|
5
5
|
require 'bundler/setup'
|
6
6
|
require 'vedeu'
|
7
7
|
|
8
|
+
TESTCASE = 'dsl_app_002'
|
9
|
+
|
8
10
|
class DSLApp
|
9
11
|
|
10
12
|
Vedeu.bind(:_initialize_) { Vedeu.trigger(:_refresh_) }
|
@@ -15,11 +17,11 @@ class DSLApp
|
|
15
17
|
log '/tmp/vedeu_views_dsl.log'
|
16
18
|
renderers [
|
17
19
|
Vedeu::Renderers::Terminal.new(
|
18
|
-
filename:
|
20
|
+
filename: "/tmp/#{TESTCASE}.out",
|
19
21
|
write_file: true),
|
20
|
-
# Vedeu::Renderers::JSON.new(filename:
|
21
|
-
# Vedeu::Renderers::HTML.new(filename:
|
22
|
-
# Vedeu::Renderers::Text.new(filename:
|
22
|
+
# Vedeu::Renderers::JSON.new(filename: "/tmp/#{TESTCASE}.json"),
|
23
|
+
# Vedeu::Renderers::HTML.new(filename: "/tmp/#{TESTCASE}.html"),
|
24
|
+
# Vedeu::Renderers::Text.new(filename: "/tmp/#{TESTCASE}.txt"),
|
23
25
|
]
|
24
26
|
run_once!
|
25
27
|
standalone!
|
@@ -34,14 +36,6 @@ class DSLApp
|
|
34
36
|
end
|
35
37
|
end
|
36
38
|
|
37
|
-
def self.actual
|
38
|
-
File.read('/tmp/dsl_app_002.out')
|
39
|
-
end
|
40
|
-
|
41
|
-
def self.expected
|
42
|
-
File.read(File.expand_path('../expected/dsl_app_002.out', __FILE__))
|
43
|
-
end
|
44
|
-
|
45
39
|
def self.start(argv = ARGV)
|
46
40
|
Vedeu::Launcher.execute!(argv)
|
47
41
|
end
|
@@ -50,11 +44,5 @@ end # DSLApp
|
|
50
44
|
|
51
45
|
DSLApp.start
|
52
46
|
|
53
|
-
|
54
|
-
|
55
|
-
exit 0;
|
56
|
-
else
|
57
|
-
puts "#{__FILE__} \e[31mFailed.\e[39m"
|
58
|
-
exit 1;
|
59
|
-
end
|
60
|
-
|
47
|
+
load File.dirname(__FILE__) + '/test_runner.rb'
|
48
|
+
TestRunner.result(TESTCASE, __FILE__)
|
data/integrations/dsl_app_003.rb
CHANGED
@@ -5,6 +5,8 @@
|
|
5
5
|
require 'bundler/setup'
|
6
6
|
require 'vedeu'
|
7
7
|
|
8
|
+
TESTCASE = 'dsl_app_003'
|
9
|
+
|
8
10
|
class DSLApp
|
9
11
|
|
10
12
|
Vedeu.bind(:_initialize_) { Vedeu.trigger(:_refresh_) }
|
@@ -15,11 +17,11 @@ class DSLApp
|
|
15
17
|
log '/tmp/vedeu_views_dsl.log'
|
16
18
|
renderers [
|
17
19
|
Vedeu::Renderers::Terminal.new(
|
18
|
-
filename:
|
20
|
+
filename: "/tmp/#{TESTCASE}.out",
|
19
21
|
write_file: true),
|
20
|
-
# Vedeu::Renderers::JSON.new(filename:
|
21
|
-
# Vedeu::Renderers::HTML.new(filename:
|
22
|
-
# Vedeu::Renderers::Text.new(filename:
|
22
|
+
# Vedeu::Renderers::JSON.new(filename: "/tmp/#{TESTCASE}.json"),
|
23
|
+
# Vedeu::Renderers::HTML.new(filename: "/tmp/#{TESTCASE}.html"),
|
24
|
+
# Vedeu::Renderers::Text.new(filename: "/tmp/#{TESTCASE}.txt"),
|
23
25
|
]
|
24
26
|
run_once!
|
25
27
|
standalone!
|
@@ -34,14 +36,6 @@ class DSLApp
|
|
34
36
|
end
|
35
37
|
end
|
36
38
|
|
37
|
-
def self.actual
|
38
|
-
File.read('/tmp/dsl_app_003.out')
|
39
|
-
end
|
40
|
-
|
41
|
-
def self.expected
|
42
|
-
File.read(File.expand_path('../expected/dsl_app_003.out', __FILE__))
|
43
|
-
end
|
44
|
-
|
45
39
|
def self.start(argv = ARGV)
|
46
40
|
Vedeu::Launcher.execute!(argv)
|
47
41
|
end
|
@@ -50,10 +44,5 @@ end # DSLApp
|
|
50
44
|
|
51
45
|
DSLApp.start
|
52
46
|
|
53
|
-
|
54
|
-
|
55
|
-
exit 0;
|
56
|
-
else
|
57
|
-
puts "#{__FILE__} \e[31mFailed.\e[39m"
|
58
|
-
exit 1;
|
59
|
-
end
|
47
|
+
load File.dirname(__FILE__) + '/test_runner.rb'
|
48
|
+
TestRunner.result(TESTCASE, __FILE__)
|
data/integrations/dsl_app_004.rb
CHANGED
@@ -5,6 +5,8 @@
|
|
5
5
|
require 'bundler/setup'
|
6
6
|
require 'vedeu'
|
7
7
|
|
8
|
+
TESTCASE = 'dsl_app_004'
|
9
|
+
|
8
10
|
class DSLApp
|
9
11
|
|
10
12
|
Vedeu.bind(:_initialize_) { Vedeu.trigger(:_refresh_) }
|
@@ -15,11 +17,11 @@ class DSLApp
|
|
15
17
|
log '/tmp/vedeu_views_dsl.log'
|
16
18
|
renderers [
|
17
19
|
Vedeu::Renderers::Terminal.new(
|
18
|
-
filename:
|
20
|
+
filename: "/tmp/#{TESTCASE}.out",
|
19
21
|
write_file: true),
|
20
|
-
# Vedeu::Renderers::JSON.new(filename:
|
21
|
-
# Vedeu::Renderers::HTML.new(filename:
|
22
|
-
# Vedeu::Renderers::Text.new(filename:
|
22
|
+
# Vedeu::Renderers::JSON.new(filename: "/tmp/#{TESTCASE}.json"),
|
23
|
+
# Vedeu::Renderers::HTML.new(filename: "/tmp/#{TESTCASE}.html"),
|
24
|
+
# Vedeu::Renderers::Text.new(filename: "/tmp/#{TESTCASE}.txt"),
|
23
25
|
]
|
24
26
|
run_once!
|
25
27
|
standalone!
|
@@ -39,14 +41,6 @@ class DSLApp
|
|
39
41
|
end
|
40
42
|
end
|
41
43
|
|
42
|
-
def self.actual
|
43
|
-
File.read('/tmp/dsl_app_004.out')
|
44
|
-
end
|
45
|
-
|
46
|
-
def self.expected
|
47
|
-
File.read(File.expand_path('../expected/dsl_app_004.out', __FILE__))
|
48
|
-
end
|
49
|
-
|
50
44
|
def self.start(argv = ARGV)
|
51
45
|
Vedeu::Launcher.execute!(argv)
|
52
46
|
end
|
@@ -55,10 +49,5 @@ end # DSLApp
|
|
55
49
|
|
56
50
|
DSLApp.start
|
57
51
|
|
58
|
-
|
59
|
-
|
60
|
-
exit 0;
|
61
|
-
else
|
62
|
-
puts "#{__FILE__} \e[31mFailed.\e[39m"
|
63
|
-
exit 1;
|
64
|
-
end
|
52
|
+
load File.dirname(__FILE__) + '/test_runner.rb'
|
53
|
+
TestRunner.result(TESTCASE, __FILE__)
|
data/integrations/dsl_app_005.rb
CHANGED
@@ -5,6 +5,8 @@
|
|
5
5
|
require 'bundler/setup'
|
6
6
|
require 'vedeu'
|
7
7
|
|
8
|
+
TESTCASE = 'dsl_app_005'
|
9
|
+
|
8
10
|
class DSLApp
|
9
11
|
|
10
12
|
Vedeu.bind(:_initialize_) { Vedeu.trigger(:_refresh_) }
|
@@ -15,11 +17,11 @@ class DSLApp
|
|
15
17
|
log '/tmp/vedeu_views_dsl.log'
|
16
18
|
renderers [
|
17
19
|
Vedeu::Renderers::Terminal.new(
|
18
|
-
filename:
|
20
|
+
filename: "/tmp/#{TESTCASE}.out",
|
19
21
|
write_file: true),
|
20
|
-
# Vedeu::Renderers::JSON.new(filename:
|
21
|
-
# Vedeu::Renderers::HTML.new(filename:
|
22
|
-
# Vedeu::Renderers::Text.new(filename:
|
22
|
+
# Vedeu::Renderers::JSON.new(filename: "/tmp/#{TESTCASE}.json"),
|
23
|
+
# Vedeu::Renderers::HTML.new(filename: "/tmp/#{TESTCASE}.html"),
|
24
|
+
# Vedeu::Renderers::Text.new(filename: "/tmp/#{TESTCASE}.txt"),
|
23
25
|
]
|
24
26
|
run_once!
|
25
27
|
standalone!
|
@@ -38,14 +40,6 @@ class DSLApp
|
|
38
40
|
end
|
39
41
|
end
|
40
42
|
|
41
|
-
def self.actual
|
42
|
-
File.read('/tmp/dsl_app_005.out')
|
43
|
-
end
|
44
|
-
|
45
|
-
def self.expected
|
46
|
-
File.read(File.expand_path('../expected/dsl_app_005.out', __FILE__))
|
47
|
-
end
|
48
|
-
|
49
43
|
def self.start(argv = ARGV)
|
50
44
|
Vedeu::Launcher.execute!(argv)
|
51
45
|
end
|
@@ -54,10 +48,5 @@ end # DSLApp
|
|
54
48
|
|
55
49
|
DSLApp.start
|
56
50
|
|
57
|
-
|
58
|
-
|
59
|
-
exit 0;
|
60
|
-
else
|
61
|
-
puts "#{__FILE__} \e[31mFailed.\e[39m"
|
62
|
-
exit 1;
|
63
|
-
end
|
51
|
+
load File.dirname(__FILE__) + '/test_runner.rb'
|
52
|
+
TestRunner.result(TESTCASE, __FILE__)
|
data/integrations/dsl_app_006.rb
CHANGED
@@ -5,6 +5,8 @@
|
|
5
5
|
require 'bundler/setup'
|
6
6
|
require 'vedeu'
|
7
7
|
|
8
|
+
TESTCASE = 'dsl_app_006'
|
9
|
+
|
8
10
|
class DSLApp
|
9
11
|
|
10
12
|
Vedeu.bind(:_initialize_) { Vedeu.trigger(:_refresh_) }
|
@@ -15,11 +17,11 @@ class DSLApp
|
|
15
17
|
log '/tmp/vedeu_views_dsl.log'
|
16
18
|
renderers [
|
17
19
|
Vedeu::Renderers::Terminal.new(
|
18
|
-
filename:
|
20
|
+
filename: "/tmp/#{TESTCASE}.out",
|
19
21
|
write_file: true),
|
20
|
-
# Vedeu::Renderers::JSON.new(filename:
|
21
|
-
# Vedeu::Renderers::HTML.new(filename:
|
22
|
-
# Vedeu::Renderers::Text.new(filename:
|
22
|
+
# Vedeu::Renderers::JSON.new(filename: "/tmp/#{TESTCASE}.json"),
|
23
|
+
# Vedeu::Renderers::HTML.new(filename: "/tmp/#{TESTCASE}.html"),
|
24
|
+
# Vedeu::Renderers::Text.new(filename: "/tmp/#{TESTCASE}.txt"),
|
23
25
|
]
|
24
26
|
run_once!
|
25
27
|
standalone!
|
@@ -33,14 +35,6 @@ class DSLApp
|
|
33
35
|
end
|
34
36
|
end
|
35
37
|
|
36
|
-
def self.actual
|
37
|
-
File.read('/tmp/dsl_app_006.out')
|
38
|
-
end
|
39
|
-
|
40
|
-
def self.expected
|
41
|
-
File.read(File.expand_path('../expected/dsl_app_006.out', __FILE__))
|
42
|
-
end
|
43
|
-
|
44
38
|
def self.start(argv = ARGV)
|
45
39
|
Vedeu::Launcher.execute!(argv)
|
46
40
|
end
|
@@ -49,10 +43,5 @@ end # DSLApp
|
|
49
43
|
|
50
44
|
DSLApp.start
|
51
45
|
|
52
|
-
|
53
|
-
|
54
|
-
exit 0;
|
55
|
-
else
|
56
|
-
puts "#{__FILE__} \e[31mFailed.\e[39m"
|
57
|
-
exit 1;
|
58
|
-
end
|
46
|
+
load File.dirname(__FILE__) + '/test_runner.rb'
|
47
|
+
TestRunner.result(TESTCASE, __FILE__)
|
data/integrations/dsl_app_007.rb
CHANGED
@@ -5,6 +5,8 @@
|
|
5
5
|
require 'bundler/setup'
|
6
6
|
require 'vedeu'
|
7
7
|
|
8
|
+
TESTCASE = 'dsl_app_007'
|
9
|
+
|
8
10
|
class DSLApp
|
9
11
|
|
10
12
|
Vedeu.bind(:_initialize_) { Vedeu.trigger(:_refresh_) }
|
@@ -15,11 +17,11 @@ class DSLApp
|
|
15
17
|
log '/tmp/vedeu_views_dsl.log'
|
16
18
|
renderers [
|
17
19
|
Vedeu::Renderers::Terminal.new(
|
18
|
-
filename:
|
20
|
+
filename: "/tmp/#{TESTCASE}.out",
|
19
21
|
write_file: true),
|
20
|
-
# Vedeu::Renderers::JSON.new(filename:
|
21
|
-
# Vedeu::Renderers::HTML.new(filename:
|
22
|
-
# Vedeu::Renderers::Text.new(filename:
|
22
|
+
# Vedeu::Renderers::JSON.new(filename: "/tmp/#{TESTCASE}.json"),
|
23
|
+
# Vedeu::Renderers::HTML.new(filename: "/tmp/#{TESTCASE}.html"),
|
24
|
+
# Vedeu::Renderers::Text.new(filename: "/tmp/#{TESTCASE}.txt"),
|
23
25
|
]
|
24
26
|
run_once!
|
25
27
|
standalone!
|
@@ -39,14 +41,6 @@ class DSLApp
|
|
39
41
|
end
|
40
42
|
end
|
41
43
|
|
42
|
-
def self.actual
|
43
|
-
File.read('/tmp/dsl_app_007.out')
|
44
|
-
end
|
45
|
-
|
46
|
-
def self.expected
|
47
|
-
File.read(File.expand_path('../expected/dsl_app_007.out', __FILE__))
|
48
|
-
end
|
49
|
-
|
50
44
|
def self.start(argv = ARGV)
|
51
45
|
Vedeu::Launcher.execute!(argv)
|
52
46
|
end
|
@@ -55,10 +49,5 @@ end # DSLApp
|
|
55
49
|
|
56
50
|
DSLApp.start
|
57
51
|
|
58
|
-
|
59
|
-
|
60
|
-
exit 0;
|
61
|
-
else
|
62
|
-
puts "#{__FILE__} \e[31mFailed.\e[39m"
|
63
|
-
exit 1;
|
64
|
-
end
|
52
|
+
load File.dirname(__FILE__) + '/test_runner.rb'
|
53
|
+
TestRunner.result(TESTCASE, __FILE__)
|
data/integrations/dsl_app_008.rb
CHANGED
@@ -5,6 +5,8 @@
|
|
5
5
|
require 'bundler/setup'
|
6
6
|
require 'vedeu'
|
7
7
|
|
8
|
+
TESTCASE = 'dsl_app_008'
|
9
|
+
|
8
10
|
class DSLApp
|
9
11
|
|
10
12
|
Vedeu.bind(:_initialize_) { Vedeu.trigger(:_refresh_) }
|
@@ -15,11 +17,11 @@ class DSLApp
|
|
15
17
|
log '/tmp/vedeu_views_dsl.log'
|
16
18
|
renderers [
|
17
19
|
Vedeu::Renderers::Terminal.new(
|
18
|
-
filename:
|
20
|
+
filename: "/tmp/#{TESTCASE}.out",
|
19
21
|
write_file: true),
|
20
|
-
# Vedeu::Renderers::JSON.new(filename:
|
21
|
-
# Vedeu::Renderers::HTML.new(filename:
|
22
|
-
# Vedeu::Renderers::Text.new(filename:
|
22
|
+
# Vedeu::Renderers::JSON.new(filename: "/tmp/#{TESTCASE}.json"),
|
23
|
+
# Vedeu::Renderers::HTML.new(filename: "/tmp/#{TESTCASE}.html"),
|
24
|
+
# Vedeu::Renderers::Text.new(filename: "/tmp/#{TESTCASE}.txt"),
|
23
25
|
]
|
24
26
|
run_once!
|
25
27
|
standalone!
|
@@ -41,14 +43,6 @@ class DSLApp
|
|
41
43
|
end
|
42
44
|
end
|
43
45
|
|
44
|
-
def self.actual
|
45
|
-
File.read('/tmp/dsl_app_008.out')
|
46
|
-
end
|
47
|
-
|
48
|
-
def self.expected
|
49
|
-
File.read(File.expand_path('../expected/dsl_app_008.out', __FILE__))
|
50
|
-
end
|
51
|
-
|
52
46
|
def self.start(argv = ARGV)
|
53
47
|
Vedeu::Launcher.execute!(argv)
|
54
48
|
end
|
@@ -57,10 +51,5 @@ end # DSLApp
|
|
57
51
|
|
58
52
|
DSLApp.start
|
59
53
|
|
60
|
-
|
61
|
-
|
62
|
-
exit 0;
|
63
|
-
else
|
64
|
-
puts "#{__FILE__} \e[31mFailed.\e[39m"
|
65
|
-
exit 1;
|
66
|
-
end
|
54
|
+
load File.dirname(__FILE__) + '/test_runner.rb'
|
55
|
+
TestRunner.result(TESTCASE, __FILE__)
|