line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::Chimps::Report; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
21471
|
use warnings; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
113
|
|
4
|
3
|
|
|
3
|
|
18
|
use strict; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
145
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
=head1 NAME |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
Test::Chimps::Report - Encapsulate a smoke test report |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 SYNOPSIS |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
Represents a smoke report. See L. |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
Note that parts of this class are dynamically generated in |
15
|
|
|
|
|
|
|
Test::Chimps::Server base on the configuation file. |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head1 METHODS |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head2 new ARGS |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
Creates a new Report. ARGS is a hash whose only valid key is |
22
|
|
|
|
|
|
|
handle. Its value must be a Jifty::DBI::Handle. |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 COLUMNS |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
Cs have the following columns (and consequently accessors): |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=over 4 |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=item * report_html |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=item * model_structure |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=item * timestamp |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=item * total_ok |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=item * total_passed |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=item * total_nok |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=item * total_failed |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=item * total_percentage |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=item * total_ratio |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=item * total_seen |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=item * total_skipped |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=item * total_todo |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=item * total_unexpectedly_succeeded |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=back |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
Additionally, columns are added dynamically based on the report |
59
|
|
|
|
|
|
|
variables specified in the server. Unfortunately, this means that |
60
|
|
|
|
|
|
|
external modules have a hard time getting at the C class as |
61
|
|
|
|
|
|
|
seen by the server. |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=cut |
64
|
|
|
|
|
|
|
|
65
|
3
|
|
|
3
|
|
17
|
use base qw/Jifty::DBI::Record/; |
|
3
|
|
|
|
|
29
|
|
|
3
|
|
|
|
|
3416
|
|
66
|
|
|
|
|
|
|
|
67
|
3
|
|
|
3
|
|
273450
|
use Jifty::DBI::Schema; |
|
3
|
|
|
|
|
32063
|
|
|
3
|
|
|
|
|
21
|
|
68
|
|
|
|
|
|
|
use Jifty::DBI::Record schema { |
69
|
|
|
|
|
|
|
|
70
|
3
|
|
|
|
|
2370
|
column report_html => type is 'text'; |
71
|
3
|
|
|
|
|
589
|
column timestamp => type is 'timestamp', |
72
|
|
|
|
|
|
|
filters are 'Jifty::DBI::Filter::DateTime'; |
73
|
3
|
|
|
|
|
530
|
column total_passed => type is 'integer'; |
74
|
3
|
|
|
|
|
311
|
column total_failed => type is 'integer'; |
75
|
3
|
|
|
|
|
305
|
column total_ratio => type is 'float'; |
76
|
3
|
|
|
|
|
306
|
column total_seen => type is 'integer'; |
77
|
3
|
|
|
|
|
300
|
column total_skipped => type is 'integer'; |
78
|
3
|
|
|
|
|
308
|
column total_todo => type is 'integer'; |
79
|
3
|
|
|
|
|
298
|
column total_unexpectedly_succeeded => type is 'integer'; |
80
|
3
|
|
|
|
|
291
|
column duration => type is 'integer'; |
81
|
3
|
|
|
3
|
|
2455
|
}; |
|
3
|
|
|
|
|
16
|
|
|
3
|
|
|
|
|
24
|
|
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=head1 AUTHOR |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
Zev Benjamin, C<< >> |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=head1 BUGS |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
Please report any bugs or feature requests to |
90
|
|
|
|
|
|
|
C, or through the web interface at |
91
|
|
|
|
|
|
|
L. |
92
|
|
|
|
|
|
|
I will be notified, and then you'll automatically be notified of progress on |
93
|
|
|
|
|
|
|
your bug as I make changes. |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=head1 SUPPORT |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
You can find documentation for this module with the perldoc command. |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
perldoc Test::Chimps |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
You can also look for information at: |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=over 4 |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
=item * Mailing list |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
Chimps has a mailman mailing list at |
108
|
|
|
|
|
|
|
L. You can subscribe via the web |
109
|
|
|
|
|
|
|
interface at |
110
|
|
|
|
|
|
|
L. |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=item * AnnoCPAN: Annotated CPAN documentation |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
L |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
=item * CPAN Ratings |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
L |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
=item * RT: CPAN's request tracker |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
L |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
=item * Search CPAN |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
L |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
=back |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
Copyright 2006 Best Practical Solutions. |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it |
135
|
|
|
|
|
|
|
under the same terms as Perl itself. |
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
=cut |
138
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
1; |