[9d35f2]: app / views / report / regression_report_mailer / report.rhtml  Maximize  Restore  History

Download this file

147 lines (137 with data), 7.4 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body style="margin: 10px 10px 10px 10px; background-color: #FFFFFF; color: #000000; font-family: verdana, arial, helvetica, sans-serif;">
<h2>Regression summary for <%= h(@test_run.variant) %> (r<%= h(@test_run.revision) %>) on <%= h(@host.name) %>, <%= h(@test_run.start_time) %></h2>
<% report_url = url_for(:controller => 'results/test_run', :action => 'regression_report', :host_name => @host.name, :test_run_variant => @test_run.variant, :test_run_id => @test_run.id, :only_path => false) %>
<p>See the <a href="<%= report_url %>">Full Report</a>
<% stats_url = url_for(:controller => 'results/test_run', :action => 'statistics_report', :host_name => @host.name, :test_run_variant => @test_run.variant, :test_run_id => @test_run.id, :only_path => false) %>
<a href="<%= stats_url %>">Statistics Report</a>
<% if @test_run.variant == 'perf' %>
<% perf_url = url_for(:controller => 'results/test_run', :action => 'performance_report', :host_name => @host.name, :test_run_variant => @test_run.variant, :test_run_id => @test_run.id, :only_path => false) %>
<a href="<%= perf_url %>">Performance Report</a>
<% end %>
</p>
<% if @report.test_runs.size > 1 %>
<% scm_url = SystemSetting['scm.url'] %>
<p>Revisions covered by this test run: <%= ((@report.test_runs[@report.test_runs.size - 2].revision)..(@report.test_runs[@report.test_runs.size - 1].revision)).collect {|r| revision_link_for_url(scm_url, r)}.join(",\n") %></p>
<% end %>
<p>Test Runs covered by this report: <%= @report.test_runs.collect do |t|
link_to("#{t.label} (r#{t.revision})", :controller => '/results/test_run', :action => 'show', :host_name => t.host.name, :test_run_variant => t.variant, :test_run_id => t.id, :only_path => false)
end.join(",\n") %></p>
<h2>Failed <%= h(@test_run.non_successes.size) %>/<%= h(@test_run.test_case_executions.size) %> (<%= (@test_run.non_successes.size.to_f / @test_run.test_case_executions.size.to_f * 100.0).to_i %>%)</h2>
<h3 style="color: #FF0000;"><%= h(@report.new_failures.size) %> new failures this run</h3>
<% if @report.new_failures.size > 0 %>
<table style="font-size: x-small; border-collapse: collapse; font-weight: normal;">
<% @report.new_failures.each do |t| %>
<tr>
<td style="padding-right: 0.2em;"><%= h(t['build_configuration_name']) %></td>
<td style="padding-right: 0.2em;"><%= h(t['test_configuration_name']) %></td>
<td style="padding-right: 0.2em;"><%= h(t['group_name']) %></td>
<td style="padding-right: 0.2em;"><%= h(t['test_case_name']) %></td>
<td style="padding-right: 0.2em;"><%= h(t['test_case_execution']) %></td>
<td><%= test_link(@report.test_run, t, false) %></td>
</tr>
<% end %>
</table>
<% end %>
<h3 style="color: #FF8c00;"><%= h(@report.missing_tests.size) %> missing tests this run</h3>
<% if @report.missing_tests.size > 0 %>
<table style="font-size: x-small; border-collapse: collapse; font-weight: normal;">
<% @report.missing_tests.each do |t| %>
<tr>
<td style="padding-right: 0.2em;"><%= h(t['build_configuration_name']) %></td>
<td style="padding-right: 0.2em;"><%= h(t['test_configuration_name']) %></td>
<td style="padding-right: 0.2em;"><%= h(t['group_name']) %></td>
<td style="padding-right: 0.2em;"><%= h(t['test_case_name']) %></td>
</tr>
<% end %>
</table>
<% end %>
<h3 style="color: #00FF00;"><%= h(@report.new_successes.size) %> new successes this run</h3>
<% if @report.new_successes.size > 0 %>
<table style="font-size: x-small; border-collapse: collapse; font-weight: normal;">
<% @report.new_successes.each do |t| %>
<tr>
<td style="padding-right: 0.2em;"><%= h(t['build_configuration_name']) %></td>
<td style="padding-right: 0.2em;"><%= h(t['test_configuration_name']) %></td>
<td style="padding-right: 0.2em;"><%= h(t['group_name']) %></td>
<td style="padding-right: 0.2em;"><%= h(t['test_case_name']) %></td>
<td><%= test_link(@report.test_run, t, false) %></td>
</tr>
<% end %>
</table>
<% end %>
<h3 class="intermittent_failures"><%= h(@report.intermittent_failures.size) %> intermittent failures over this week</h3>
<h3 class="consistent_failures"><%= h(@report.consistent_failures.size) %> consistent failures over this week</h3>
<% if @report.statistics.size > 0 or @report.test_runs.size > 1 %>
<h2>Performance Statistics</h2>
<table style="font-size: x-small; border-collapse: collapse; font-weight: normal;">
<tr style="text-align: center;">
<td></td>
<% @report.test_runs.each do |tr| %>
<td style="vertical-align: top; padding: 0.3em; background-color: <%= cycle('rgb(230,230,230)', 'white', :name => 'columns') -%>;"><%= test_run_label(tr, @report.test_runs) %></td>
<% end %>
</tr>
<% reset_cycle('rows') %>
<tr style="text-align: center;">
<td style="text-align: right; padding: 0.3em; background-color: <%= cycle('rgb(230,230,230)', 'white', :name => 'rows') -%>;">Success Rate</td>
<% @report.test_runs.each do |tr| %>
<td style="background-color: silver;"><%= h("#{tr.successes.size}/#{tr.test_case_executions.size}") %></td>
<% end %>
</tr>
<% @report.statistics.each do |r| %>
<tr style="text-align: center;">
<td style="text-align: right; padding: 0.3em; background-color: <%= cycle('rgb(230,230,230)', 'white', :name => 'rows') -%>;"><%= h(r['name']) %></td>
<% @report.test_runs.each do |tr| %>
<td style="background-color: silver;"><%= perf_stat(tr.id, r) %></td>
<% end %>
</tr>
<% end %>
</table>
<% end %>
<% if @report.bc_by_tr.size > 0 %>
<h2>Build Configuration By Test Run</h2>
<table style="font-size: x-small; border-collapse: collapse; font-weight: normal;">
<% reset_cycle('columns') %>
<tr style="text-align: center;">
<td></td>
<% @report.test_runs.each do |test_run| %>
<td style="vertical-align: top; padding: 0.3em; background-color: <%= cycle('rgb(230,230,230)', 'white', :name => 'columns') -%>;"><%= test_run_label(test_run, @report.test_runs) %></td>
<% end %>
</tr>
<% reset_cycle('rows') %>
<% @report.bc_by_tr.each do |r| %>
<tr style="text-align: center;">
<td style="text-align: right; padding: 0.3em; background-color: <%= cycle('rgb(230,230,230)', 'white', :name => 'rows') -%>;"><%= h(r['build_configuration_name']) %></td>
<% @report.test_runs.each do |tr| %>
<%= cell(r["test_run_#{tr.id}"].to_i) %>
<% end %>
</tr>
<% end %>
</table>
<% end %>
<% if @report.tc_by_tr.size > 0 %>
<h2>Test Case By Test Run</h2>
<table style="font-size: x-small; border-collapse: collapse; font-weight: normal;">
<% reset_cycle('columns') %>
<tr style="text-align: center;">
<td></td>
<% @report.test_runs.each do |test_run| %>
<td style="vertical-align: top; padding: 0.3em; background-color: <%= cycle('rgb(230,230,230)', 'white', :name => 'columns') -%>;"><%= test_run_label(test_run, @report.test_runs) %></td>
<% end %>
</tr>
<% reset_cycle('rows') %>
<% @report.tc_by_tr.each do |r| %>
<tr style="text-align: center;">
<td style="text-align: right; padding: 0.3em; background-color: <%= cycle('rgb(230,230,230)', 'white', :name => 'rows') -%>;"><%= h(r['test_case_name']) %></td>
<% @report.test_runs.each do |tr| %>
<%= cell(r["test_run_#{tr.id}"].to_i) %>
<% end %>
</tr>
<% end %>
</table>
<% end %>
</body>
</html>

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks