vedeu 0.8.19 → 0.8.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/integrations/342_streams.rb +5 -16
  3. data/integrations/dsl_app_001.rb +8 -19
  4. data/integrations/dsl_app_002.rb +8 -20
  5. data/integrations/dsl_app_003.rb +8 -19
  6. data/integrations/dsl_app_004.rb +8 -19
  7. data/integrations/dsl_app_005.rb +8 -19
  8. data/integrations/dsl_app_006.rb +8 -19
  9. data/integrations/dsl_app_007.rb +8 -19
  10. data/integrations/dsl_app_008.rb +8 -19
  11. data/integrations/dsl_app_009.rb +8 -19
  12. data/integrations/dsl_app_010.rb +8 -19
  13. data/integrations/dsl_app_011.rb +8 -19
  14. data/integrations/dsl_app_012.rb +8 -19
  15. data/integrations/dsl_app_013.rb +8 -19
  16. data/integrations/dsl_app_014.rb +8 -19
  17. data/integrations/dsl_app_015.rb +8 -19
  18. data/integrations/dsl_app_016.rb +8 -19
  19. data/integrations/dsl_app_017.rb +8 -19
  20. data/integrations/dsl_app_018.rb +8 -19
  21. data/integrations/dsl_app_019.rb +8 -19
  22. data/integrations/dsl_app_020.rb +8 -19
  23. data/integrations/dsl_app_021.rb +8 -19
  24. data/integrations/dsl_app_022.rb +8 -19
  25. data/integrations/dsl_app_border_001.rb +8 -19
  26. data/integrations/dsl_app_border_002.rb +8 -19
  27. data/integrations/dsl_app_border_003.rb +8 -19
  28. data/integrations/dsl_app_border_004.rb +8 -19
  29. data/integrations/dsl_app_border_005.rb +8 -19
  30. data/integrations/dsl_app_border_006.rb +58 -0
  31. data/integrations/dsl_app_border_007.rb +58 -0
  32. data/integrations/dsl_app_border_008.rb +57 -0
  33. data/integrations/dsl_app_border_009.rb +57 -0
  34. data/integrations/dsl_app_border_010.rb +57 -0
  35. data/integrations/dsl_app_border_011.rb +57 -0
  36. data/integrations/expected/dsl_app_border_006.out +1 -0
  37. data/integrations/expected/dsl_app_border_007.out +1 -0
  38. data/integrations/expected/dsl_app_border_008.out +1 -0
  39. data/integrations/expected/dsl_app_border_009.out +1 -0
  40. data/integrations/expected/dsl_app_border_010.out +1 -0
  41. data/integrations/expected/dsl_app_border_011.out +1 -0
  42. data/integrations/test_runner.rb +60 -0
  43. data/integrations/test_runner.sh +11 -5
  44. data/lib/vedeu/version.rb +1 -1
  45. data/test/lib/vedeu/repositories/repositories_test.rb +18 -4
  46. data/test/lib/vedeu_test.rb +12 -0
  47. data/test/support/examples/material_colours_app.rb +0 -134
  48. data/vedeu.gemspec +1 -1
  49. metadata +17 -4
@@ -5,6 +5,8 @@
5
5
  require 'bundler/setup'
6
6
  require 'vedeu'
7
7
 
8
+ TESTCASE = 'dsl_app_018'
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: '/tmp/dsl_app_018.out',
20
+ filename: "/tmp/#{TESTCASE}.out",
19
21
  write_file: true),
20
- # Vedeu::Renderers::JSON.new(filename: '/tmp/dsl_app_018.json'),
21
- # Vedeu::Renderers::HTML.new(filename: '/tmp/dsl_app_018.html'),
22
- # Vedeu::Renderers::Text.new(filename: '/tmp/dsl_app_018.txt'),
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!
@@ -32,14 +34,6 @@ class DSLApp
32
34
  end
33
35
  end
34
36
 
35
- def self.actual
36
- File.read('/tmp/dsl_app_018.out')
37
- end
38
-
39
- def self.expected
40
- File.read(File.expand_path('../expected/dsl_app_018.out', __FILE__))
41
- end
42
-
43
37
  def self.start(argv = ARGV)
44
38
  Vedeu::Launcher.execute!(argv)
45
39
  end
@@ -48,10 +42,5 @@ end # DSLApp
48
42
 
49
43
  DSLApp.start
50
44
 
51
- if DSLApp.expected == DSLApp.actual
52
- puts "#{__FILE__} \e[32mPassed.\e[39m"
53
- exit 0;
54
- else
55
- puts "#{__FILE__} \e[31mFailed.\e[39m"
56
- exit 1;
57
- end
45
+ load File.dirname(__FILE__) + '/test_runner.rb'
46
+ TestRunner.result(TESTCASE, __FILE__)
@@ -5,6 +5,8 @@
5
5
  require 'bundler/setup'
6
6
  require 'vedeu'
7
7
 
8
+ TESTCASE = 'dsl_app_019'
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: '/tmp/dsl_app_019.out',
20
+ filename: "/tmp/#{TESTCASE}.out",
19
21
  write_file: true),
20
- # Vedeu::Renderers::JSON.new(filename: '/tmp/dsl_app_019.json'),
21
- # Vedeu::Renderers::HTML.new(filename: '/tmp/dsl_app_019.html'),
22
- # Vedeu::Renderers::Text.new(filename: '/tmp/dsl_app_019.txt'),
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!
@@ -32,14 +34,6 @@ class DSLApp
32
34
  end
33
35
  end
34
36
 
35
- def self.actual
36
- File.read('/tmp/dsl_app_019.out')
37
- end
38
-
39
- def self.expected
40
- File.read(File.expand_path('../expected/dsl_app_019.out', __FILE__))
41
- end
42
-
43
37
  def self.start(argv = ARGV)
44
38
  Vedeu::Launcher.execute!(argv)
45
39
  end
@@ -48,10 +42,5 @@ end # DSLApp
48
42
 
49
43
  DSLApp.start
50
44
 
51
- if DSLApp.expected == DSLApp.actual
52
- puts "#{__FILE__} \e[32mPassed.\e[39m"
53
- exit 0;
54
- else
55
- puts "#{__FILE__} \e[31mFailed.\e[39m"
56
- exit 1;
57
- end
45
+ load File.dirname(__FILE__) + '/test_runner.rb'
46
+ TestRunner.result(TESTCASE, __FILE__)
@@ -5,6 +5,8 @@
5
5
  require 'bundler/setup'
6
6
  require 'vedeu'
7
7
 
8
+ TESTCASE = 'dsl_app_020'
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: '/tmp/dsl_app_020.out',
20
+ filename: "/tmp/#{TESTCASE}.out",
19
21
  write_file: true),
20
- # Vedeu::Renderers::JSON.new(filename: '/tmp/dsl_app_020.json'),
21
- # Vedeu::Renderers::HTML.new(filename: '/tmp/dsl_app_020.html'),
22
- # Vedeu::Renderers::Text.new(filename: '/tmp/dsl_app_020.txt'),
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!
@@ -32,14 +34,6 @@ class DSLApp
32
34
  end
33
35
  end
34
36
 
35
- def self.actual
36
- File.read('/tmp/dsl_app_020.out')
37
- end
38
-
39
- def self.expected
40
- File.read(File.expand_path('../expected/dsl_app_020.out', __FILE__))
41
- end
42
-
43
37
  def self.start(argv = ARGV)
44
38
  Vedeu::Launcher.execute!(argv)
45
39
  end
@@ -48,10 +42,5 @@ end # DSLApp
48
42
 
49
43
  DSLApp.start
50
44
 
51
- if DSLApp.expected == DSLApp.actual
52
- puts "#{__FILE__} \e[32mPassed.\e[39m"
53
- exit 0;
54
- else
55
- puts "#{__FILE__} \e[31mFailed.\e[39m"
56
- exit 1;
57
- end
45
+ load File.dirname(__FILE__) + '/test_runner.rb'
46
+ TestRunner.result(TESTCASE, __FILE__)
@@ -5,6 +5,8 @@
5
5
  require 'bundler/setup'
6
6
  require 'vedeu'
7
7
 
8
+ TESTCASE = 'dsl_app_021'
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: '/tmp/dsl_app_021.out',
20
+ filename: "/tmp/#{TESTCASE}.out",
19
21
  write_file: true),
20
- # Vedeu::Renderers::JSON.new(filename: '/tmp/dsl_app_021.json'),
21
- # Vedeu::Renderers::HTML.new(filename: '/tmp/dsl_app_021.html'),
22
- # Vedeu::Renderers::Text.new(filename: '/tmp/dsl_app_021.txt'),
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!
@@ -103,14 +105,6 @@ class DSLApp
103
105
  end
104
106
  end
105
107
 
106
- def self.actual
107
- File.read('/tmp/dsl_app_021.out')
108
- end
109
-
110
- def self.expected
111
- File.read(File.expand_path('../expected/dsl_app_021.out', __FILE__))
112
- end
113
-
114
108
  def self.start(argv = ARGV)
115
109
  Vedeu::Launcher.execute!(argv)
116
110
  end
@@ -119,10 +113,5 @@ end # DSLApp
119
113
 
120
114
  DSLApp.start
121
115
 
122
- if DSLApp.expected == DSLApp.actual
123
- puts "#{__FILE__} \e[32mPassed.\e[39m"
124
- exit 0;
125
- else
126
- puts "#{__FILE__} \e[31mFailed.\e[39m"
127
- exit 1;
128
- end
116
+ load File.dirname(__FILE__) + '/test_runner.rb'
117
+ TestRunner.result(TESTCASE, __FILE__)
@@ -5,6 +5,8 @@
5
5
  require 'bundler/setup'
6
6
  require 'vedeu'
7
7
 
8
+ TESTCASE = 'dsl_app_022'
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: '/tmp/dsl_app_022.out',
20
+ filename: "/tmp/#{TESTCASE}.out",
19
21
  write_file: true),
20
- # Vedeu::Renderers::JSON.new(filename: '/tmp/dsl_app_022.json'),
21
- # Vedeu::Renderers::HTML.new(filename: '/tmp/dsl_app_022.html'),
22
- # Vedeu::Renderers::Text.new(filename: '/tmp/dsl_app_022.txt'),
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!
@@ -109,14 +111,6 @@ class DSLApp
109
111
  end
110
112
  end
111
113
 
112
- def self.actual
113
- File.read('/tmp/dsl_app_022.out')
114
- end
115
-
116
- def self.expected
117
- File.read(File.expand_path('../expected/dsl_app_022.out', __FILE__))
118
- end
119
-
120
114
  def self.start(argv = ARGV)
121
115
  Vedeu::Launcher.execute!(argv)
122
116
  end
@@ -125,10 +119,5 @@ end # DSLApp
125
119
 
126
120
  DSLApp.start
127
121
 
128
- if DSLApp.expected == DSLApp.actual
129
- puts "#{__FILE__} \e[32mPassed.\e[39m"
130
- exit 0;
131
- else
132
- puts "#{__FILE__} \e[31mFailed.\e[39m"
133
- exit 1;
134
- end
122
+ load File.dirname(__FILE__) + '/test_runner.rb'
123
+ TestRunner.result(TESTCASE, __FILE__)
@@ -5,6 +5,8 @@
5
5
  require 'bundler/setup'
6
6
  require 'vedeu'
7
7
 
8
+ TESTCASE = 'dsl_app_border_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: '/tmp/dsl_app_border_001.out',
20
+ filename: "/tmp/#{TESTCASE}.out",
19
21
  write_file: true),
20
- # Vedeu::Renderers::JSON.new(filename: '/tmp/dsl_app_border_001.json'),
21
- # Vedeu::Renderers::HTML.new(filename: '/tmp/dsl_app_border_001.html'),
22
- # Vedeu::Renderers::Text.new(filename: '/tmp/dsl_app_border_001.txt'),
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_border_001.out')
44
- end
45
-
46
- def self.expected
47
- File.read(File.expand_path('../expected/dsl_app_border_001.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
- if DSLApp.expected == DSLApp.actual
59
- puts "#{__FILE__} \e[32mPassed.\e[39m"
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__)
@@ -5,6 +5,8 @@
5
5
  require 'bundler/setup'
6
6
  require 'vedeu'
7
7
 
8
+ TESTCASE = 'dsl_app_border_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: '/tmp/dsl_app_border_002.out',
20
+ filename: "/tmp/#{TESTCASE}.out",
19
21
  write_file: true),
20
- # Vedeu::Renderers::JSON.new(filename: '/tmp/dsl_app_border_002.json'),
21
- # Vedeu::Renderers::HTML.new(filename: '/tmp/dsl_app_border_002.html'),
22
- # Vedeu::Renderers::Text.new(filename: '/tmp/dsl_app_border_002.txt'),
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_border_002.out')
44
- end
45
-
46
- def self.expected
47
- File.read(File.expand_path('../expected/dsl_app_border_002.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
- if DSLApp.expected == DSLApp.actual
59
- puts "#{__FILE__} \e[32mPassed.\e[39m"
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__)
@@ -5,6 +5,8 @@
5
5
  require 'bundler/setup'
6
6
  require 'vedeu'
7
7
 
8
+ TESTCASE = 'dsl_app_border_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: '/tmp/dsl_app_border_003.out',
20
+ filename: "/tmp/#{TESTCASE}.out",
19
21
  write_file: true),
20
- # Vedeu::Renderers::JSON.new(filename: '/tmp/dsl_app_border_003.json'),
21
- # Vedeu::Renderers::HTML.new(filename: '/tmp/dsl_app_border_003.html'),
22
- # Vedeu::Renderers::Text.new(filename: '/tmp/dsl_app_border_003.txt'),
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_border_003.out')
44
- end
45
-
46
- def self.expected
47
- File.read(File.expand_path('../expected/dsl_app_border_003.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
- if DSLApp.expected == DSLApp.actual
59
- puts "#{__FILE__} \e[32mPassed.\e[39m"
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__)
@@ -5,6 +5,8 @@
5
5
  require 'bundler/setup'
6
6
  require 'vedeu'
7
7
 
8
+ TESTCASE = 'dsl_app_border_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: '/tmp/dsl_app_border_004.out',
20
+ filename: "/tmp/#{TESTCASE}.out",
19
21
  write_file: true),
20
- # Vedeu::Renderers::JSON.new(filename: '/tmp/dsl_app_border_004.json'),
21
- # Vedeu::Renderers::HTML.new(filename: '/tmp/dsl_app_border_004.html'),
22
- # Vedeu::Renderers::Text.new(filename: '/tmp/dsl_app_border_004.txt'),
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_border_004.out')
44
- end
45
-
46
- def self.expected
47
- File.read(File.expand_path('../expected/dsl_app_border_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
- if DSLApp.expected == DSLApp.actual
59
- puts "#{__FILE__} \e[32mPassed.\e[39m"
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__)