ciat 0.4.8
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +96 -0
- data/README.rdoc +135 -0
- data/Rakefile +40 -0
- data/ciat.gemspec +53 -0
- data/lib/ciat.rb +22 -0
- data/lib/ciat/cargo.rb +55 -0
- data/lib/ciat/compilers/java.rb +54 -0
- data/lib/ciat/crate.rb +58 -0
- data/lib/ciat/differs/html_differ.rb +20 -0
- data/lib/ciat/erb_helpers.rb +83 -0
- data/lib/ciat/executors/java.rb +36 -0
- data/lib/ciat/executors/parrot.rb +51 -0
- data/lib/ciat/feedback/composite.rb +20 -0
- data/lib/ciat/feedback/feedback_counter.rb +45 -0
- data/lib/ciat/feedback/html_feedback.rb +40 -0
- data/lib/ciat/feedback/return_status.rb +23 -0
- data/lib/ciat/feedback/standard_output.rb +29 -0
- data/lib/ciat/processors/basic_processing.rb +64 -0
- data/lib/ciat/processors/compilation_interpreter.rb +18 -0
- data/lib/ciat/processors/compiler.rb +18 -0
- data/lib/ciat/processors/copy.rb +37 -0
- data/lib/ciat/processors/interpreter.rb +18 -0
- data/lib/ciat/rake_task.rb +56 -0
- data/lib/ciat/suite.rb +112 -0
- data/lib/ciat/test.rb +41 -0
- data/lib/ciat/test_element.rb +44 -0
- data/lib/ciat/traffic_light.rb +39 -0
- data/lib/ciat/version.rb +7 -0
- data/lib/data/ciat.css +40 -0
- data/lib/data/elements.yml +30 -0
- data/lib/data/prototype.js +4228 -0
- data/lib/templates/detail_row.html.erb +9 -0
- data/lib/templates/detail_row/elements.html.erb +3 -0
- data/lib/templates/elements/diff.html.erb +7 -0
- data/lib/templates/elements/plain.html.erb +8 -0
- data/lib/templates/group_header.html.erb +7 -0
- data/lib/templates/report.html.erb +38 -0
- data/lib/templates/summary_row.html.erb +12 -0
- data/lib/templates/test_numbers.html.erb +12 -0
- metadata +99 -0
@@ -0,0 +1,9 @@
|
|
1
|
+
<tr class="details" style="display:none">
|
2
|
+
<td colspan="<%= result.processors.size + 1 %>">
|
3
|
+
|
4
|
+
<% result.processors.each do |processor| %>
|
5
|
+
<h3>Results from <%= processor.describe %></h3>
|
6
|
+
<%= render "detail_row/elements", :elements => processor.relevant_elements(result) %>
|
7
|
+
<% end %>
|
8
|
+
|
9
|
+
</tr>
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<div class="<%= element.name %>">
|
2
|
+
<h4 title="<%= element.filename %>"><%= element.describe %></h4>
|
3
|
+
<table class="diff" summary="table for <%= element.describe %>">
|
4
|
+
<tr><th></th><th>Expected</th><th></th><th>Generated</th></tr>
|
5
|
+
<%= replace_tabs(element.content) %>
|
6
|
+
</table>
|
7
|
+
</div>
|
@@ -0,0 +1,38 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
6
|
+
<title><%= report_title %></title>
|
7
|
+
<link rel="stylesheet" href="ciat.css" type="text/css"/>
|
8
|
+
<script src="prototype.js" type="text/javascript"></script>
|
9
|
+
</head>
|
10
|
+
|
11
|
+
<body>
|
12
|
+
<h1><%= report_title %></h1>
|
13
|
+
|
14
|
+
<%= render "test_numbers", :counter => counter, :size => size %>
|
15
|
+
|
16
|
+
<a href="#"
|
17
|
+
onclick="$$('.results .details').invoke('toggle'); return false;">
|
18
|
+
Expand/Collapse All
|
19
|
+
</a>
|
20
|
+
|
21
|
+
<table border="1" summary="Table of tests" class="results">
|
22
|
+
<tr id="header">
|
23
|
+
<th>Description</th>
|
24
|
+
<% processors.each do |processor| %>
|
25
|
+
<th><%= title(processor.describe) %></th>
|
26
|
+
<% end %>
|
27
|
+
</tr>
|
28
|
+
|
29
|
+
<% results.each do |result| %>
|
30
|
+
<% if new_path?(result) %>
|
31
|
+
<%= render "group_header", :result => result %>
|
32
|
+
<% end %>
|
33
|
+
<%= render "summary_row", :result => result %>
|
34
|
+
<%= render "detail_row", :result => result %>
|
35
|
+
<% end %>
|
36
|
+
</table>
|
37
|
+
</body>
|
38
|
+
</html>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<tr class="summary">
|
2
|
+
<td>
|
3
|
+
<a href="#" onclick="$(this).up('tr').next().toggle(); return false;" title="<%= result.filename %>">
|
4
|
+
<%= result.element(:description).content %>
|
5
|
+
</a>
|
6
|
+
</td>
|
7
|
+
<% result.processors.each do |processor| %>
|
8
|
+
<td class="<%= processor.light.setting %>">
|
9
|
+
<%= light_to_word(processor.light) %>
|
10
|
+
</td>
|
11
|
+
<% end %>
|
12
|
+
</tr>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<p>
|
2
|
+
<span class="test-count"><%= size %> tests</span>
|
3
|
+
<% if counter.error_count > 0 %>
|
4
|
+
/ <span class="yellow"><%= counter.error_count %> errors</span>
|
5
|
+
<% end %>
|
6
|
+
<% if counter.failure_count > 0 %>
|
7
|
+
/ <span class="red"><%= counter.failure_count %> failures</span>
|
8
|
+
<% end %>
|
9
|
+
<% if counter.error_count + counter.failure_count == 0 %>
|
10
|
+
/ <span class="green">all good</span>
|
11
|
+
<% end %>
|
12
|
+
</p>
|
metadata
ADDED
@@ -0,0 +1,99 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ciat
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.4.8
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jeremy D. Frens
|
8
|
+
- Mark Van Holstyn
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
|
13
|
+
date: 2009-09-28 00:00:00 -05:00
|
14
|
+
default_executable:
|
15
|
+
dependencies: []
|
16
|
+
|
17
|
+
description: CIAT (pronounced "dog") is a library of Ruby and rake code to make writing acceptance tests for compilers and interpreters easier (despite their implementation, source, and target languages).
|
18
|
+
email: jdfrens@gmail.com
|
19
|
+
executables: []
|
20
|
+
|
21
|
+
extensions: []
|
22
|
+
|
23
|
+
extra_rdoc_files:
|
24
|
+
- README.rdoc
|
25
|
+
- History.txt
|
26
|
+
files:
|
27
|
+
- History.txt
|
28
|
+
- README.rdoc
|
29
|
+
- Rakefile
|
30
|
+
- ciat.gemspec
|
31
|
+
- lib/ciat/version.rb
|
32
|
+
- lib/ciat.rb
|
33
|
+
- lib/ciat/rake_task.rb
|
34
|
+
- lib/ciat/cargo.rb
|
35
|
+
- lib/ciat/crate.rb
|
36
|
+
- lib/ciat/suite.rb
|
37
|
+
- lib/ciat/test.rb
|
38
|
+
- lib/ciat/erb_helpers.rb
|
39
|
+
- lib/ciat/test_element.rb
|
40
|
+
- lib/ciat/traffic_light.rb
|
41
|
+
- lib/ciat/processors/copy.rb
|
42
|
+
- lib/ciat/processors/basic_processing.rb
|
43
|
+
- lib/ciat/processors/compiler.rb
|
44
|
+
- lib/ciat/processors/interpreter.rb
|
45
|
+
- lib/ciat/processors/compilation_interpreter.rb
|
46
|
+
- lib/ciat/compilers/java.rb
|
47
|
+
- lib/ciat/executors/java.rb
|
48
|
+
- lib/ciat/executors/parrot.rb
|
49
|
+
- lib/ciat/differs/html_differ.rb
|
50
|
+
- lib/ciat/feedback/standard_output.rb
|
51
|
+
- lib/ciat/feedback/html_feedback.rb
|
52
|
+
- lib/ciat/feedback/feedback_counter.rb
|
53
|
+
- lib/ciat/feedback/composite.rb
|
54
|
+
- lib/ciat/feedback/return_status.rb
|
55
|
+
- lib/data/ciat.css
|
56
|
+
- lib/data/prototype.js
|
57
|
+
- lib/data/elements.yml
|
58
|
+
- lib/templates/report.html.erb
|
59
|
+
- lib/templates/group_header.html.erb
|
60
|
+
- lib/templates/summary_row.html.erb
|
61
|
+
- lib/templates/test_numbers.html.erb
|
62
|
+
- lib/templates/detail_row.html.erb
|
63
|
+
- lib/templates/detail_row/elements.html.erb
|
64
|
+
- lib/templates/elements/diff.html.erb
|
65
|
+
- lib/templates/elements/plain.html.erb
|
66
|
+
has_rdoc: true
|
67
|
+
homepage: http://github.com/jdfrens/ciat
|
68
|
+
licenses: []
|
69
|
+
|
70
|
+
post_install_message:
|
71
|
+
rdoc_options:
|
72
|
+
- --title
|
73
|
+
- CIAT -- Compiler and Interpreter Acceptance Tester
|
74
|
+
- --main
|
75
|
+
- README.txt
|
76
|
+
- --line-numbers
|
77
|
+
require_paths:
|
78
|
+
- lib
|
79
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: "0"
|
84
|
+
version:
|
85
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: "0"
|
90
|
+
version:
|
91
|
+
requirements: []
|
92
|
+
|
93
|
+
rubyforge_project:
|
94
|
+
rubygems_version: 1.3.5
|
95
|
+
signing_key:
|
96
|
+
specification_version: 3
|
97
|
+
summary: Acceptance tester for compilers and interpreters
|
98
|
+
test_files: []
|
99
|
+
|