tarantula 0.0.5 → 0.0.8.1
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/CHANGELOG +11 -0
- data/MIT-LICENSE +1 -1
- data/README.rdoc +48 -38
- data/Rakefile +3 -19
- data/laf/javascripts/niftyLayout.js +11 -0
- data/laf/javascripts/niftycube-details.js +298 -0
- data/laf/javascripts/niftycube.js +298 -0
- data/laf/stylesheets/NiftyLayout.css +47 -0
- data/laf/stylesheets/niftyCorners.css +35 -0
- data/{tmp/test_output/stylesheets/tarantula.css → laf/stylesheets/old.css} +1 -1
- data/laf/stylesheets/tarantula.css +83 -546
- data/laf/stylesheets/tarantula.v2.css +48 -0
- data/laf/stylesheets/ui.tabs.css +2 -2
- data/laf/v2/detail.html +41 -0
- data/laf/v2/images/button_active.png +0 -0
- data/laf/v2/images/button_hover.png +0 -0
- data/laf/v2/images/button_inactive.png +0 -0
- data/laf/v2/images/header_bg.jpg +0 -0
- data/laf/v2/images/logo.png +0 -0
- data/laf/v2/images/tagline.png +0 -0
- data/laf/v2/index.html +77 -0
- data/laf/v2/stylesheets/tarantula.v2.css +252 -0
- data/lib/relevance/tarantula.rb +4 -5
- data/lib/relevance/tarantula/detail.html.erb +55 -41
- data/lib/relevance/tarantula/html_report_helper.rb +3 -13
- data/lib/relevance/tarantula/html_reporter.rb +2 -2
- data/lib/relevance/tarantula/index.html.erb +25 -20
- data/lib/relevance/tarantula/test_report.html.erb +9 -9
- data/manifest.txt +17 -32
- data/rails/init.rb +4 -1
- data/tarantula.gemspec +16 -8
- data/tasks/tarantula_tasks.rake +8 -6
- data/test/relevance/tarantula/html_report_helper_test.rb +2 -3
- data/test/relevance/tarantula/rails_init_test.rb +14 -0
- metadata +43 -37
- data/tmp/test_output/images/background.jpg +0 -0
- data/tmp/test_output/images/relevance-os-logo.gif +0 -0
- data/tmp/test_output/images/tab.png +0 -0
- data/tmp/test_output/images/table-sort.gif +0 -0
- data/tmp/test_output/images/tarantula-sprites.png +0 -0
- data/tmp/test_output/index.html +0 -255
- data/tmp/test_output/javascripts/jquery-1.2.3.js +0 -3408
- data/tmp/test_output/javascripts/jquery-ui-tabs.js +0 -890
- data/tmp/test_output/javascripts/jquery.tablesorter.js +0 -861
- data/tmp/test_output/javascripts/tarantula.js +0 -10
- data/tmp/test_output/stylesheets/ui.tabs.css +0 -113
- data/tmp/test_output/test_user_pages/1.html +0 -71
- data/tmp/test_output/test_user_pages/10.html +0 -71
- data/tmp/test_output/test_user_pages/11.html +0 -71
- data/tmp/test_output/test_user_pages/12.html +0 -71
- data/tmp/test_output/test_user_pages/13.html +0 -71
- data/tmp/test_output/test_user_pages/14.html +0 -71
- data/tmp/test_output/test_user_pages/15.html +0 -71
- data/tmp/test_output/test_user_pages/16.html +0 -71
- data/tmp/test_output/test_user_pages/17.html +0 -71
- data/tmp/test_output/test_user_pages/18.html +0 -71
- data/tmp/test_output/test_user_pages/19.html +0 -71
- data/tmp/test_output/test_user_pages/2.html +0 -71
- data/tmp/test_output/test_user_pages/20.html +0 -71
- data/tmp/test_output/test_user_pages/3.html +0 -71
- data/tmp/test_output/test_user_pages/4.html +0 -71
- data/tmp/test_output/test_user_pages/5.html +0 -71
- data/tmp/test_output/test_user_pages/6.html +0 -71
- data/tmp/test_output/test_user_pages/7.html +0 -71
- data/tmp/test_output/test_user_pages/8.html +0 -71
- data/tmp/test_output/test_user_pages/9.html +0 -71
@@ -0,0 +1,48 @@
|
|
1
|
+
/* RESET */
|
2
|
+
html, body, div, span, applet, object, iframe,
|
3
|
+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
4
|
+
a, abbr, acronym, address, big, cite, code,
|
5
|
+
del, dfn, em, font, img, ins, kbd, q, s, samp,
|
6
|
+
small, strike, strong, sub, sup, tt, var,
|
7
|
+
b, u, i, center,
|
8
|
+
dl, dt, dd, ol, ul, li,
|
9
|
+
fieldset, form, label, legend,
|
10
|
+
table, caption, tbody, tfoot, thead, tr, th, td {
|
11
|
+
margin: 0;
|
12
|
+
padding: 0;
|
13
|
+
border: 0;
|
14
|
+
outline: 0;
|
15
|
+
font-size: 100%;
|
16
|
+
vertical-align: baseline;
|
17
|
+
background: transparent;
|
18
|
+
}
|
19
|
+
body {
|
20
|
+
line-height: 1;
|
21
|
+
}
|
22
|
+
ol, ul {
|
23
|
+
list-style: none;
|
24
|
+
}
|
25
|
+
blockquote, q {
|
26
|
+
quotes: none;
|
27
|
+
}
|
28
|
+
|
29
|
+
/* remember to define focus styles! */
|
30
|
+
:focus {
|
31
|
+
outline: 0;
|
32
|
+
}
|
33
|
+
|
34
|
+
/* remember to highlight inserts somehow! */
|
35
|
+
ins {
|
36
|
+
text-decoration: none;
|
37
|
+
}
|
38
|
+
del {
|
39
|
+
text-decoration: line-through;
|
40
|
+
}
|
41
|
+
|
42
|
+
/* tables still need 'cellspacing="0"' in the markup */
|
43
|
+
table {
|
44
|
+
border-collapse: collapse;
|
45
|
+
border-spacing: 0;
|
46
|
+
}
|
47
|
+
|
48
|
+
/* */
|
data/laf/stylesheets/ui.tabs.css
CHANGED
@@ -36,7 +36,8 @@
|
|
36
36
|
.ui-tabs-nav a, .ui-tabs-nav a span {
|
37
37
|
display: block;
|
38
38
|
padding: 0 10px;
|
39
|
-
background:
|
39
|
+
background-color: #eee;
|
40
|
+
color: #13a013;
|
40
41
|
}
|
41
42
|
.ui-tabs-nav a {
|
42
43
|
margin: 1px 0 0; /* position: relative makes opacity fail for disabled tab in IE */
|
@@ -95,7 +96,6 @@
|
|
95
96
|
filter: alpha(opacity=40);
|
96
97
|
}
|
97
98
|
.ui-tabs-panel {
|
98
|
-
border-top: 1px solid #97a5b0;
|
99
99
|
padding: 1em 8px;
|
100
100
|
}
|
101
101
|
.ui-tabs-loading em {
|
data/laf/v2/detail.html
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
+
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
+
<head>
|
6
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
7
|
+
<link rel="stylesheet" href="stylesheets/tarantula.v2.css" type="text/css" media="screen" title="no title" charset="utf-8">
|
8
|
+
|
9
|
+
<title>Detail</title>
|
10
|
+
|
11
|
+
</head>
|
12
|
+
|
13
|
+
<body>
|
14
|
+
<div id="container">
|
15
|
+
<div id="header">
|
16
|
+
<h1>Tarantula by Relevance</h1>
|
17
|
+
<h2>Eight legs, two fangs ... and an attitude</h2>
|
18
|
+
<p>Tarantula is an open source tool for testing Rails web
|
19
|
+
applications. Tarantula is developed by <a href="http://thinkrelevance.com">Relevance, Inc.</a>
|
20
|
+
and lives at <a href="http://github.com/relevance/tarantula">http://github.com/relevance/tarantula</a>.</p>
|
21
|
+
<hr/>
|
22
|
+
</div>
|
23
|
+
<div id="page">
|
24
|
+
<ul class="tabs">
|
25
|
+
<li><a href="index.html">Failures</a></li>
|
26
|
+
<li><a href="#" class="active">Data</a></li>
|
27
|
+
<li><a href="#">Body</a></li>
|
28
|
+
<li><a href="#">Log</a></li>
|
29
|
+
</ul>
|
30
|
+
<div id="report">
|
31
|
+
<h3>Detail of GET /widgets/1 <em>Generated on Friday January 9, 2009 at 11:01:45am</em></h3>
|
32
|
+
<p><b>Visit</b> <a href="#">http://localhost:3000/widgets/6</a>
|
33
|
+
<p><b>Response</b> 500</p>
|
34
|
+
<p><b>Referrer</b> /random/30</p>
|
35
|
+
|
36
|
+
|
37
|
+
</div>
|
38
|
+
</div>
|
39
|
+
</div>
|
40
|
+
</body>
|
41
|
+
</html>
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/laf/v2/index.html
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
+
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
+
<head>
|
6
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
7
|
+
<link rel="stylesheet" href="stylesheets/tarantula.v2.css" type="text/css" media="screen" title="no title" charset="utf-8">
|
8
|
+
|
9
|
+
<title>Tarantula</title>
|
10
|
+
|
11
|
+
</head>
|
12
|
+
|
13
|
+
<body>
|
14
|
+
<div id="container">
|
15
|
+
<div id="header">
|
16
|
+
<h1>Tarantula by Relevance</h1>
|
17
|
+
<h2>Eight legs, two fangs ... and an attitude</h2>
|
18
|
+
<p>Tarantula is an open source tool for testing Rails web
|
19
|
+
applications. Tarantula is developed by <a href="http://thinkrelevance.com">Relevance, Inc.</a>
|
20
|
+
and lives at <a href="http://github.com/relevance/tarantula">http://github.com/relevance/tarantula</a>.</p>
|
21
|
+
<hr/>
|
22
|
+
</div>
|
23
|
+
<div id="page">
|
24
|
+
<ul class="tabs">
|
25
|
+
<li><a href="#" class="active">Failures</a></li>
|
26
|
+
<li><a href="#">Successes</a></li>
|
27
|
+
</ul>
|
28
|
+
|
29
|
+
<table cellspacing="0">
|
30
|
+
<caption>4 Failures</caption>
|
31
|
+
<thead>
|
32
|
+
<tr>
|
33
|
+
<th><a href="#">URL <span class="sort">▼</span></a></th>
|
34
|
+
<th><a href="#">Action <span class="sort">▲</span></a></th>
|
35
|
+
<th><a href="#">Response <span class="sort">▲</span></a></th>
|
36
|
+
<th class="left"><a href="#">Description <span class="sort">▲</span></a></th>
|
37
|
+
<th><a href="#">Referrer <span class="sort">▲</span></a></th>
|
38
|
+
</tr>
|
39
|
+
</thead>
|
40
|
+
<tfoot>
|
41
|
+
<tr><td colspan="5"> </td></tr>
|
42
|
+
</tfoot>
|
43
|
+
<tbody>
|
44
|
+
<tr>
|
45
|
+
<td><a href="detail.html">/widgets/1</a></td>
|
46
|
+
<td>GET</td>
|
47
|
+
<td><span class="r5">500</span></td>
|
48
|
+
<td class="left">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor.</td>
|
49
|
+
<td>/random/91</td>
|
50
|
+
</tr>
|
51
|
+
<tr class="even">
|
52
|
+
<td><a href="detail.html">/widgets/1</a></td>
|
53
|
+
<td>GET</td>
|
54
|
+
<td><span class="r5">500</span></td>
|
55
|
+
<td class="left">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor.</td>
|
56
|
+
<td>/random/91</td>
|
57
|
+
</tr>
|
58
|
+
<tr>
|
59
|
+
<td><a href="detail.html">/widgets/1</a></td>
|
60
|
+
<td>GET</td>
|
61
|
+
<td><span class="r5">500</span></td>
|
62
|
+
<td class="left">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor.</td>
|
63
|
+
<td>/random/91</td>
|
64
|
+
</tr>
|
65
|
+
<tr class="even">
|
66
|
+
<td><a href="detail.html">/widgets/1</a></td>
|
67
|
+
<td>GET</td>
|
68
|
+
<td><span class="r5">500</span></td>
|
69
|
+
<td class="left">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor.</td>
|
70
|
+
<td>/random/91</td>
|
71
|
+
</tr>
|
72
|
+
</tbody>
|
73
|
+
</table>
|
74
|
+
</div>
|
75
|
+
</div>
|
76
|
+
</body>
|
77
|
+
</html>
|
@@ -0,0 +1,252 @@
|
|
1
|
+
/* RESET */
|
2
|
+
html, body, div, span, applet, object, iframe,
|
3
|
+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
4
|
+
a, abbr, acronym, address, big, cite, code,
|
5
|
+
del, dfn, em, font, img, ins, kbd, q, s, samp,
|
6
|
+
small, strike, strong, sub, sup, tt, var,
|
7
|
+
b, u, i, center,
|
8
|
+
dl, dt, dd, ol, ul, li,
|
9
|
+
fieldset, form, label, legend,
|
10
|
+
table, caption, tbody, tfoot, thead, tr, th, td {
|
11
|
+
margin: 0;
|
12
|
+
padding: 0;
|
13
|
+
border: 0;
|
14
|
+
outline: 0;
|
15
|
+
font-size: 100%;
|
16
|
+
vertical-align: baseline;
|
17
|
+
background: transparent;
|
18
|
+
}
|
19
|
+
body {
|
20
|
+
line-height: 1;
|
21
|
+
}
|
22
|
+
ol, ul {
|
23
|
+
list-style: none;
|
24
|
+
}
|
25
|
+
blockquote, q {
|
26
|
+
quotes: none;
|
27
|
+
}
|
28
|
+
|
29
|
+
/* remember to define focus styles! */
|
30
|
+
:focus {
|
31
|
+
outline: 0;
|
32
|
+
}
|
33
|
+
|
34
|
+
/* remember to highlight inserts somehow! */
|
35
|
+
ins {
|
36
|
+
text-decoration: none;
|
37
|
+
}
|
38
|
+
del {
|
39
|
+
text-decoration: line-through;
|
40
|
+
}
|
41
|
+
|
42
|
+
/* tables still need 'cellspacing="0"' in the markup */
|
43
|
+
table {
|
44
|
+
border-collapse: collapse;
|
45
|
+
border-spacing: 0;
|
46
|
+
}
|
47
|
+
|
48
|
+
body {
|
49
|
+
line-height: 1em;
|
50
|
+
font-family: Tahoma, Arial, Helvetica, sans-serif;
|
51
|
+
color: #050505;
|
52
|
+
}
|
53
|
+
|
54
|
+
/* header */
|
55
|
+
#header {
|
56
|
+
background: #37302e url(../images/header_bg.jpg) no-repeat top left;
|
57
|
+
height: 70px;
|
58
|
+
border-bottom: 2px solid #d0d0d0;
|
59
|
+
}
|
60
|
+
|
61
|
+
#header h1 {
|
62
|
+
width:206px;
|
63
|
+
height:56px;
|
64
|
+
text-indent: -9999em;
|
65
|
+
background: transparent url(../images/logo.png) no-repeat top center;
|
66
|
+
position: absolute;
|
67
|
+
top: 7px;
|
68
|
+
left: 42px;
|
69
|
+
}
|
70
|
+
|
71
|
+
#header h2 {
|
72
|
+
width:196px;
|
73
|
+
height:34px;
|
74
|
+
text-indent: -9999em;
|
75
|
+
background: transparent url(../images/tagline.png) no-repeat top center;
|
76
|
+
position: absolute;
|
77
|
+
top: 15px;
|
78
|
+
left: 257px;
|
79
|
+
}
|
80
|
+
|
81
|
+
#header p {
|
82
|
+
display: block;
|
83
|
+
position: absolute;
|
84
|
+
right: 42px;
|
85
|
+
width: 315px;
|
86
|
+
padding: 8px;
|
87
|
+
color: #fff;
|
88
|
+
font-size: 13px;
|
89
|
+
line-height: 15px;
|
90
|
+
}
|
91
|
+
|
92
|
+
#header a:link, #header a:visited, #header a {
|
93
|
+
color: #70b1ca;
|
94
|
+
}
|
95
|
+
|
96
|
+
#header a:hover {
|
97
|
+
text-decoration: none;
|
98
|
+
}
|
99
|
+
|
100
|
+
#header hr {
|
101
|
+
display: none;
|
102
|
+
}
|
103
|
+
|
104
|
+
.left { text-align: left !important; }
|
105
|
+
.right { text-align: right !important; }
|
106
|
+
.center { text-align: center !important; }
|
107
|
+
|
108
|
+
/* page */
|
109
|
+
|
110
|
+
#page {
|
111
|
+
padding: 55px 10px 0 10px;
|
112
|
+
width: 1000px;
|
113
|
+
margin: auto;
|
114
|
+
position: relative;
|
115
|
+
}
|
116
|
+
|
117
|
+
div#page ul.tabs {
|
118
|
+
|
119
|
+
clear: both;
|
120
|
+
}
|
121
|
+
|
122
|
+
div#page ul.tabs li{
|
123
|
+
display: block;
|
124
|
+
float: left;
|
125
|
+
}
|
126
|
+
|
127
|
+
div#page ul.tabs li a {
|
128
|
+
display: block;
|
129
|
+
float: left;
|
130
|
+
clear: right;
|
131
|
+
margin-right: 5px;
|
132
|
+
}
|
133
|
+
|
134
|
+
div#page ul.tabs li a.active {
|
135
|
+
background: transparent url(../images/button_active.png) no-repeat top left;
|
136
|
+
color: #050505;
|
137
|
+
}
|
138
|
+
|
139
|
+
div#page ul.tabs li a {
|
140
|
+
background: transparent url(../images/button_inactive.png) no-repeat top left;
|
141
|
+
height: 38px;
|
142
|
+
width: 110px;
|
143
|
+
color: #fff;
|
144
|
+
padding: 8px 0 0 12px;
|
145
|
+
font-size: 18px;
|
146
|
+
line-height: 18px;
|
147
|
+
text-decoration: none;
|
148
|
+
}
|
149
|
+
|
150
|
+
div#page ul.tabs li a:hover {
|
151
|
+
background: transparent url(../images/button_hover.png) no-repeat top left;
|
152
|
+
color: #613005;
|
153
|
+
}
|
154
|
+
|
155
|
+
div#page ul.tabs {
|
156
|
+
position: absolute;
|
157
|
+
top: 7px;
|
158
|
+
left: 7px;
|
159
|
+
}
|
160
|
+
|
161
|
+
div#page table {
|
162
|
+
width: 100%;
|
163
|
+
}
|
164
|
+
|
165
|
+
div#page table th, div #page th a, div#page tfoot td {
|
166
|
+
background: #b9b9a9;
|
167
|
+
color: #463c38;
|
168
|
+
text-decoration: none;
|
169
|
+
}
|
170
|
+
|
171
|
+
.sort {
|
172
|
+
font-size: 75%;
|
173
|
+
filter:alpha(opacity=50);
|
174
|
+
-moz-opacity:0.5;
|
175
|
+
-khtml-opacity: 0.5;
|
176
|
+
opacity: 0.5;
|
177
|
+
}
|
178
|
+
|
179
|
+
div#page table th, div #page th a:hover span {
|
180
|
+
filter:alpha(opacity=100);
|
181
|
+
-moz-opacity:1;
|
182
|
+
-khtml-opacity: 1;
|
183
|
+
opacity: 1;
|
184
|
+
}
|
185
|
+
|
186
|
+
div#page table td, div#page table th {
|
187
|
+
text-align: center;
|
188
|
+
padding: 4px;
|
189
|
+
font-size: 14px;
|
190
|
+
}
|
191
|
+
|
192
|
+
div#page tbody a {
|
193
|
+
color: #6699cc;
|
194
|
+
}
|
195
|
+
|
196
|
+
div#page tbody a:hover {
|
197
|
+
text-decoration: none;
|
198
|
+
}
|
199
|
+
|
200
|
+
div#page table caption {
|
201
|
+
text-align: left;
|
202
|
+
padding: 7px;
|
203
|
+
background: #d0d0c4;
|
204
|
+
border-bottom: 2px solid #aba7a1;
|
205
|
+
}
|
206
|
+
|
207
|
+
div#page table tbody td {
|
208
|
+
background: #f2f2eb;
|
209
|
+
}
|
210
|
+
|
211
|
+
tr.even td {
|
212
|
+
background: #e9e9e2 !important;
|
213
|
+
}
|
214
|
+
|
215
|
+
/* Response Codes */
|
216
|
+
|
217
|
+
span.r1, span.r2, span.r3, span.r4,
|
218
|
+
span.r5 {
|
219
|
+
display: block;
|
220
|
+
padding: .15em;
|
221
|
+
margin: .15em;
|
222
|
+
color: #dac7ad;
|
223
|
+
}
|
224
|
+
|
225
|
+
/* Informational 1xx */
|
226
|
+
span.r1 {
|
227
|
+
background-color: #3333cc;
|
228
|
+
border: 1px solid #376edc;
|
229
|
+
}
|
230
|
+
|
231
|
+
/* Successfull 2xx */
|
232
|
+
span.r2 {
|
233
|
+
background-color: #006600;
|
234
|
+
border: 1px solid #008900;
|
235
|
+
}
|
236
|
+
|
237
|
+
/* Redirection 3xx */
|
238
|
+
span.r3 {
|
239
|
+
background-color: #555652;
|
240
|
+
border: 1px solid #80817b;
|
241
|
+
}
|
242
|
+
|
243
|
+
/* Client 4xx */
|
244
|
+
span.r4 {
|
245
|
+
background-color: #857400;
|
246
|
+
border: 1px solid #baa200;
|
247
|
+
}
|
248
|
+
/* Server Error 5xx */
|
249
|
+
span.r5 {
|
250
|
+
background-color: #c40000;
|
251
|
+
border: 1px solid #dc0000;
|
252
|
+
}
|