test-parser 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +12 -0
- data/License.txt +20 -0
- data/Manifest.txt +29 -0
- data/README.txt +3 -0
- data/Rakefile +147 -0
- data/bin/test_parser +16 -0
- data/lib/test-parser.rb +14 -0
- data/lib/test-parser/parsers/base.rb +5 -0
- data/lib/test-parser/parsers/junit4.rb +18 -0
- data/lib/test-parser/parsers/pyunit.rb +40 -0
- data/lib/test-parser/parsers/quickCheck.rb +34 -0
- data/lib/test-parser/parsers/rspec.rb +61 -0
- data/lib/test-parser/parsers/rubyunit.rb +42 -0
- data/lib/test-parser/version.rb +16 -0
- data/scripts/txt2html +68 -0
- data/setup.rb +1585 -0
- data/spec/example_data/junit4.rb +17 -0
- data/spec/example_data/pyunit.rb +143 -0
- data/spec/example_data/quickCheck.rb +61 -0
- data/spec/example_data/rspec.rb +105 -0
- data/spec/example_data/rubyunit.rb +77 -0
- data/spec/spec_helper.rb +4 -0
- data/spec/test_parsers_spec.rb +101 -0
- data/website/index.html +158 -0
- data/website/index.txt +98 -0
- data/website/javascripts/rounded_corners_lite.inc.js +285 -0
- data/website/parser_output.txt +31 -0
- data/website/stylesheets/screen.css +157 -0
- data/website/template.rhtml +48 -0
- metadata +80 -0
@@ -0,0 +1,31 @@
|
|
1
|
+
h1. Output
|
2
|
+
|
3
|
+
h2. Guarantees
|
4
|
+
|
5
|
+
The output of the different parsers must vary to a certain degree. Different testing systems produce varying levels of detail. Some parsers may return more than the information displayed on this page, though as of version 0.8.0, none do.
|
6
|
+
|
7
|
+
This page merely lists things you can be sure about. This is essentially a retelling of what test-parser's own automated tests ensure. <a href='#note1' id='back1'>[1]</a> Only the first property, <code>:failure_count</code> can be guaranteed. If a parser can't determine the other properties, it may not provide them. Partially implemented parsers also might only return some of these properties, but all parsers give a valid result for <code>:failure_count</code>.
|
8
|
+
|
9
|
+
h2. :failure_count
|
10
|
+
|
11
|
+
The most important property is <code>:failure_count</code>, which gives the number of tests that failed. All parsers must yield this property. A test which encounters an error in its operation is counted here. If this property is missing, it's a good indication that there was a major problem. Ensure that the correct parser is receiving the correct output.
|
12
|
+
|
13
|
+
h2. :success_count and :test_count
|
14
|
+
|
15
|
+
Two ancillary properties are <code>:success_count</code> and <code>:test_count</code>. They represent the number of successful tests, and the total number of tests run. If both of these properties are present, then <code>:success_count</code> + <code>:failure_count</code> must equal <code>:test_count</code>.
|
16
|
+
|
17
|
+
h2. :failures
|
18
|
+
|
19
|
+
The last property, <code>:failures</code> is an array of detailed information about the failed tests. If present and nonempty, the length of <code>:failures</code> must equal <code>:failure_count</code>. The following are details that may be found in an element of <code>:failures</code>:
|
20
|
+
|
21
|
+
<table class='failure_details'>
|
22
|
+
<tr><td><code>:test</code></td><td>the name of the test that failed</td></tr>
|
23
|
+
<tr><td><code>:file</code></td><td>the filename where the test failed or the error was encountered</td></tr>
|
24
|
+
<tr><td><code>:line</code></td><td>the line number where the test failed/error was encountered</td></tr>
|
25
|
+
<tr><td><code>:method</code></td><td>the method/function/subroutine in which the failure occurred</td></tr>
|
26
|
+
<tr><td><code>:message</code></td><td>a message giving more information about the failure</td></tr>
|
27
|
+
<tr><td><code>:error_type</code></td><td>the class/type of the error encountered</td></tr>
|
28
|
+
<tr><td><code>:line</code></td><td>the line number where the test failed/error was encountered</td></tr>
|
29
|
+
</table>
|
30
|
+
|
31
|
+
<a href='#back1' id='note1'>1)</a> The automated tests mere run against a list of examples and the known correct parsing of those examples. If you find a test that doesn't parse correctly, please submit it to "the google group":http://groups.google.com/group/test-parser.
|
@@ -0,0 +1,157 @@
|
|
1
|
+
body {
|
2
|
+
background-color: #111;
|
3
|
+
font-family: "Georgia", sans-serif;
|
4
|
+
font-size: 16px;
|
5
|
+
line-height: 1.6em;
|
6
|
+
padding: 1.6em 0 0 0;
|
7
|
+
color: #bbb;
|
8
|
+
}
|
9
|
+
h1 {
|
10
|
+
color: #44a;
|
11
|
+
}
|
12
|
+
|
13
|
+
h2, h3, h4, h5, h6 {
|
14
|
+
color: #f80;
|
15
|
+
margin-top: 75px;
|
16
|
+
}
|
17
|
+
h1 {
|
18
|
+
font-family: sans-serif;
|
19
|
+
font-weight: normal;
|
20
|
+
font-size: 4em;
|
21
|
+
line-height: 0.8em;
|
22
|
+
letter-spacing: -0.1ex;
|
23
|
+
margin: 5px;
|
24
|
+
}
|
25
|
+
li {
|
26
|
+
padding: 0;
|
27
|
+
margin: 0;
|
28
|
+
list-style-type: square;
|
29
|
+
}
|
30
|
+
a {
|
31
|
+
color: #3E3AFF;
|
32
|
+
/* background-color: #DAC;*/
|
33
|
+
font-weight: normal;
|
34
|
+
text-decoration: none;
|
35
|
+
}
|
36
|
+
|
37
|
+
a:hover {
|
38
|
+
text-decoration: underline;
|
39
|
+
}
|
40
|
+
|
41
|
+
a:visited {
|
42
|
+
color: #f80;
|
43
|
+
}
|
44
|
+
|
45
|
+
blockquote {
|
46
|
+
font-size: 90%;
|
47
|
+
font-style: italic;
|
48
|
+
border-left: 1px solid #111;
|
49
|
+
}
|
50
|
+
.caps {
|
51
|
+
font-size: 80%;
|
52
|
+
}
|
53
|
+
|
54
|
+
#main {
|
55
|
+
width: 50em;
|
56
|
+
padding: 0;
|
57
|
+
margin: 0 auto;
|
58
|
+
}
|
59
|
+
.coda {
|
60
|
+
text-align: right;
|
61
|
+
color: #77f;
|
62
|
+
font-size: smaller;
|
63
|
+
}
|
64
|
+
|
65
|
+
table {
|
66
|
+
font-size: 90%;
|
67
|
+
line-height: 1.4em;
|
68
|
+
color: #ff8;
|
69
|
+
background-color: #111;
|
70
|
+
padding: 2px 10px 2px 10px;
|
71
|
+
border-style: dashed;
|
72
|
+
}
|
73
|
+
|
74
|
+
th {
|
75
|
+
color: #fff;
|
76
|
+
}
|
77
|
+
|
78
|
+
td {
|
79
|
+
padding: 2px 10px 2px 10px;
|
80
|
+
}
|
81
|
+
|
82
|
+
.success {
|
83
|
+
color: #0CC52B;
|
84
|
+
}
|
85
|
+
|
86
|
+
.failed {
|
87
|
+
color: #E90A1B;
|
88
|
+
}
|
89
|
+
|
90
|
+
.unknown {
|
91
|
+
color: #995000;
|
92
|
+
}
|
93
|
+
pre, code {
|
94
|
+
font-family: monospace;
|
95
|
+
font-size: 90%;
|
96
|
+
line-height: 1.4em;
|
97
|
+
color: #88f;
|
98
|
+
background-color: #111;
|
99
|
+
/* padding: 2px 10px 2px 10px;*/
|
100
|
+
}
|
101
|
+
.comment { color: #aaa; font-style: italic; }
|
102
|
+
.keyword { color: #eff; font-weight: bold; }
|
103
|
+
.punct { color: #eee; font-weight: bold; }
|
104
|
+
.symbol { color: #0bb; }
|
105
|
+
.string { color: #6b4; }
|
106
|
+
.ident { color: #fff; }
|
107
|
+
.constant { color: #66f; }
|
108
|
+
.regex { color: #ec6; }
|
109
|
+
.number { color: #F99; }
|
110
|
+
.expr { color: #777; }
|
111
|
+
|
112
|
+
#version {
|
113
|
+
float: right;
|
114
|
+
text-align: right;
|
115
|
+
font-family: sans-serif;
|
116
|
+
font-weight: normal;
|
117
|
+
background-color: #deb;
|
118
|
+
color: #141331;
|
119
|
+
padding: 15px 20px 10px 20px;
|
120
|
+
margin: 0 auto;
|
121
|
+
margin-top: 15px;
|
122
|
+
border: 3px solid #141331;
|
123
|
+
}
|
124
|
+
|
125
|
+
#version .numbers {
|
126
|
+
display: block;
|
127
|
+
font-size: 4em;
|
128
|
+
line-height: 0.8em;
|
129
|
+
letter-spacing: -0.1ex;
|
130
|
+
margin-bottom: 15px;
|
131
|
+
}
|
132
|
+
|
133
|
+
#version p {
|
134
|
+
text-decoration: none;
|
135
|
+
color: #141331;
|
136
|
+
margin: 0;
|
137
|
+
padding: 0;
|
138
|
+
}
|
139
|
+
|
140
|
+
#version a {
|
141
|
+
text-decoration: none;
|
142
|
+
color: #141331;
|
143
|
+
}
|
144
|
+
|
145
|
+
.clickable {
|
146
|
+
cursor: pointer;
|
147
|
+
cursor: hand;
|
148
|
+
}
|
149
|
+
|
150
|
+
.command {
|
151
|
+
color: #aa3;
|
152
|
+
}
|
153
|
+
|
154
|
+
table.failure_details {
|
155
|
+
border: none;
|
156
|
+
margin-bottom: 50px;
|
157
|
+
}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<link rel="stylesheet" href="stylesheets/screen.css" type="text/css" media="screen" />
|
6
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
+
<title>
|
8
|
+
<%= title %>
|
9
|
+
</title>
|
10
|
+
<script src="javascripts/rounded_corners_lite.inc.js" type="text/javascript"></script>
|
11
|
+
|
12
|
+
<script type="text/javascript">
|
13
|
+
window.onload = function() {
|
14
|
+
settings = {
|
15
|
+
tl: { radius: 10 },
|
16
|
+
tr: { radius: 10 },
|
17
|
+
bl: { radius: 10 },
|
18
|
+
br: { radius: 10 },
|
19
|
+
antiAlias: true,
|
20
|
+
autoPad: true,
|
21
|
+
validTags: ["div"]
|
22
|
+
}
|
23
|
+
var versionBox = new curvyCorners(settings, document.getElementById("version"));
|
24
|
+
versionBox.applyCornersToAll();
|
25
|
+
}
|
26
|
+
</script>
|
27
|
+
</head>
|
28
|
+
<body>
|
29
|
+
<div id="main">
|
30
|
+
|
31
|
+
<h1><%= title %></h1>
|
32
|
+
<% if display_download %>
|
33
|
+
<div id="version" class="clickable" onclick='document.location = "<%= download %>"; return false'>
|
34
|
+
<p>Get Version</p>
|
35
|
+
<a href="<%= download %>" class="numbers"><%= version %></a>
|
36
|
+
</div>
|
37
|
+
<% end %>
|
38
|
+
<%= body %>
|
39
|
+
<p class="coda">
|
40
|
+
<a href="mailto:drnicwilliams@gmail.com">Dr Nic</a><br/>
|
41
|
+
Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
|
42
|
+
</p>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<!-- insert site tracking codes here, like Google Urchin -->
|
46
|
+
|
47
|
+
</body>
|
48
|
+
</html>
|
metadata
ADDED
@@ -0,0 +1,80 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
rubygems_version: 0.9.4
|
3
|
+
specification_version: 1
|
4
|
+
name: test-parser
|
5
|
+
version: !ruby/object:Gem::Version
|
6
|
+
version: 0.8.0
|
7
|
+
date: 2007-08-02 00:00:00 -05:00
|
8
|
+
summary: A collection of parsers for parsing the output of various testing suites.
|
9
|
+
require_paths:
|
10
|
+
- lib
|
11
|
+
email: rictic@gmail.com
|
12
|
+
homepage: http://test-parser.rubyforge.org
|
13
|
+
rubyforge_project: test-parser
|
14
|
+
description: A collection of parsers for parsing the output of various testing suites.
|
15
|
+
autorequire:
|
16
|
+
default_executable:
|
17
|
+
bindir: bin
|
18
|
+
has_rdoc: true
|
19
|
+
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.0.0
|
24
|
+
version:
|
25
|
+
platform: ruby
|
26
|
+
signing_key:
|
27
|
+
cert_chain:
|
28
|
+
post_install_message:
|
29
|
+
authors:
|
30
|
+
- Peter Burns
|
31
|
+
files:
|
32
|
+
- History.txt
|
33
|
+
- License.txt
|
34
|
+
- Manifest.txt
|
35
|
+
- README.txt
|
36
|
+
- Rakefile
|
37
|
+
- bin/test_parser
|
38
|
+
- lib/test-parser.rb
|
39
|
+
- lib/test-parser/version.rb
|
40
|
+
- lib/test-parser/parsers/pyunit.rb
|
41
|
+
- lib/test-parser/parsers/rspec.rb
|
42
|
+
- lib/test-parser/parsers/rubyunit.rb
|
43
|
+
- lib/test-parser/parsers/junit4.rb
|
44
|
+
- lib/test-parser/parsers/quickCheck.rb
|
45
|
+
- lib/test-parser/parsers/base.rb
|
46
|
+
- scripts/txt2html
|
47
|
+
- setup.rb
|
48
|
+
- spec/spec_helper.rb
|
49
|
+
- spec/test_parsers_spec.rb
|
50
|
+
- spec/example_data/pyunit.rb
|
51
|
+
- spec/example_data/rspec.rb
|
52
|
+
- spec/example_data/junit4.rb
|
53
|
+
- spec/example_data/rubyunit.rb
|
54
|
+
- spec/example_data/quickCheck.rb
|
55
|
+
- website/index.html
|
56
|
+
- website/index.txt
|
57
|
+
- website/parser_output.txt
|
58
|
+
- website/javascripts/rounded_corners_lite.inc.js
|
59
|
+
- website/stylesheets/screen.css
|
60
|
+
- website/template.rhtml
|
61
|
+
test_files: []
|
62
|
+
|
63
|
+
rdoc_options:
|
64
|
+
- --main
|
65
|
+
- README.txt
|
66
|
+
extra_rdoc_files:
|
67
|
+
- History.txt
|
68
|
+
- License.txt
|
69
|
+
- Manifest.txt
|
70
|
+
- README.txt
|
71
|
+
- website/index.txt
|
72
|
+
- website/parser_output.txt
|
73
|
+
executables:
|
74
|
+
- test_parser
|
75
|
+
extensions: []
|
76
|
+
|
77
|
+
requirements: []
|
78
|
+
|
79
|
+
dependencies: []
|
80
|
+
|