[9d35f2]: app / views / results / test_run / regression_report.haml Maximize Restore History

Download this file

regression_report.haml    183 lines (171 with data), 5.8 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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
- @content_for_breadcrumbs = draw_breadcrumbs(@report.test_run, 'regression_report')
- @page_title = "Regression Report: #{h(@report.test_run.label)}"
- scm_url = SystemSetting['scm.url']
%h1.page-title= @page_title
%ul.actions
%li= link_for(@report.test_run, :label => 'Summary', :action => 'show_summary')
%li= link_for(@report.test_run, :label => 'Statistics Report', :controller => '/results/test_run', :action => 'statistics_report')
- if @report.test_run.variant == 'perf'
%li= link_for(@report.test_run, :label => 'Performance Report', :controller => '/results/test_run', :action => 'performance_report')
.clearer
- if @report.missing_tests.size > 0
= tests_header('missing_tests', pluralize(@report.missing_tests.size, 'Missing Tests'))
%table#missing_tests.list
%tr
%th Build Configuration
%th Test Configuration
%th Group
%th Test
- @report.missing_tests.each do |t|
%tr{:class => cycle('odd','even')}
%td= h(t['build_configuration_name'])
%td= h(t['test_configuration_name'])
%td= h(t['group_name'])
%td
= h(t['test_case_name'])
- if @report.new_failures.size > 0
= tests_header('new_failures', pluralize(@report.new_failures.size, 'New Failures'))
%table#new_failures.list
%tr
%th
%th Build Configuration
%th Test Configuration
%th Group
%th Test
%th Result
- @report.new_failures.each do |t|
- reset_cycle
%tr{:class => cycle('odd','even')}
%td
%ul.actions
%li= test_link(@report.test_run, t)
%td= h(t['build_configuration_name'])
%td= h(t['test_configuration_name'])
%td= h(t['group_name'])
%td= h(t['test_case_name'])
%td= h(t['test_case_execution'])
- if @report.new_successes.size > 0
= tests_header('new_successes', pluralize(@report.new_successes.size, 'New Successes'))
%table#new_successes.list
%tr
%th
%th Build Configuration
%th Test Configuration
%th Group
%th Test
- @report.new_successes.each do |t|
- reset_cycle
%tr{:class => cycle('odd','even')}
%td
%ul.actions
%li= test_link(@report.test_run, t)
%td= h(t['build_configuration_name'])
%td= h(t['test_configuration_name'])
%td= h(t['group_name'])
%td= h(t['test_case_name'])
- if @report.intermittent_failures.size > 0
= tests_header('intermittent_failures', pluralize(@report.intermittent_failures.size, 'Intermittent Failures'))
%table#intermittent_failures.list
%tr
%th
%th Build Configuration
%th Test Configuration
%th Group
%th Test
%th Result
- @report.intermittent_failures.each do |t|
- reset_cycle
%tr{:class => cycle('odd','even')}
%td
%ul.actions
%li= test_link(@report.test_run, t)
%td= h(t['build_configuration_name'])
%td= h(t['test_configuration_name'])
%td= h(t['group_name'])
%td= h(t['test_case_name'])
%td= h(t['test_case_execution'])
%script{ :type => 'text/javascript' }
= hide_tests_javascript('intermittent_failures');
- if @report.consistent_failures.size > 0
= tests_header('consistent_failures', pluralize(@report.consistent_failures.size, 'Consistent Failures'))
%table#consistent_failures.list
%tr
%th
%th Build Configuration
%th Test Configuration
%th Group
%th Test
%th Result
- @report.consistent_failures.each do |t|
- reset_cycle
%tr{:class => cycle('odd','even')}
%td
%ul.actions
%li= test_link(@report.test_run, t)
%td= h(t['build_configuration_name'])
%td= h(t['test_configuration_name'])
%td= h(t['group_name'])
%td= h(t['test_case_name'])
%td= h(t['test_case_execution'])
%script{ :type => 'text/javascript' }
= hide_tests_javascript('consistent_failures');
- if @report.test_runs.size > 1
%h2 Revisions Covered By Report
%p
= ((@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(', ')
%h2 Test Runs Covered By Report
%table.list
%tr
%th Name
%th Revision
%th Time
%th
- @report.test_runs.reverse_each do |t|
- reset_cycle
%tr{:class => cycle('odd','even')}
%td= h(t.label)
%td= revision_link_for_url(scm_url, t.revision)
%td= t.start_time
%td
%ul.actions
%li= link_for(t, :label => 'Details')
- if @report.statistics.size > 0 or @report.test_runs.size > 1
%h2 Performance Statistics
%table.report
%tr
%th.pivot
- @report.test_runs.each do |tr|
%th.column= tr.label
%tr
%th.row Success Rate
- @report.test_runs.each do |tr|
%td= h("#{tr.successes.size}/#{tr.test_case_executions.size}")
- @report.statistics.each do |r|
%tr
%th.row= h(r['name'])
- @report.test_runs.each do |tr|
%td= perf_stat(tr.id, r)
- if @report.bc_by_tr.size > 0
%h2 Build Configuration By Test Run
%table.report
%tr
%th.pivot
- @report.test_runs.each do |tr|
%th.column= tr.label
- @report.bc_by_tr.each do |r|
%tr
%th.row= h(r['build_configuration_name'])
- @report.test_runs.each do |tr|
= cell(r["test_run_#{tr.id}"].to_i)
- if @report.tc_by_tr.size > 0
%h2 Test Case By Test Run
%table.report
%tr
%th.pivot
- @report.test_runs.each do |tr|
%th.column= tr.label
- @report.tc_by_tr.each do |r|
%tr
%th.row= h(r['test_case_name'])
- @report.test_runs.each do |tr|
= cell(r["test_run_#{tr.id}"].to_i)