Skip to content

Commit 65b018c

Browse files
committed
report/log: accessible pass/fail/skip colors
1 parent 8d92390 commit 65b018c

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

atest/robot/cli/runner/report_background.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Invalid Colors
2020

2121
*** Keywords ***
2222
Report should have correct background
23-
[Arguments] ${opt} ${pass}=#9e9 ${fail}=#f66 ${skip}=#ec971f
23+
[Arguments] ${opt} ${pass}=#9e9 ${fail}=#f66 ${skip}=#fed84f
2424
Run Tests ${opt} --report rep.html misc/pass_and_fail.robot
2525
${report} = Get File ${OUTDIR}/rep.html
2626
Should Contain ${report} "background":{"fail":"${fail}","pass":"${pass}","skip":"${skip}"},

src/robot/conf/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class _BaseSettings(object):
5454
'LogTitle' : ('logtitle', None),
5555
'ReportTitle' : ('reporttitle', None),
5656
'ReportBackground' : ('reportbackground',
57-
('#9e9', '#f66', '#ec971f')),
57+
('#9e9', '#f66', '#fed84f')),
5858
'SuiteStatLevel' : ('suitestatlevel', -1),
5959
'TagStatInclude' : ('tagstatinclude', []),
6060
'TagStatExclude' : ('tagstatexclude', []),
@@ -245,7 +245,7 @@ def _process_report_background(self, colors):
245245
raise DataError("Invalid report background colors '%s'." % colors)
246246
colors = colors.split(':')
247247
if len(colors) == 2:
248-
return colors[0], colors[1], '#ec971f'
248+
return colors[0], colors[1], '#fed84f'
249249
return tuple(colors)
250250

251251
def _process_tag_stat_combine(self, pattern):

src/robot/htmldata/rebot/common.css

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ h2 {
8080
color: #393 !important;
8181
}
8282
.skip {
83-
color: #ec971f !important;
83+
color: #fed84f !important;
8484
font-weight: bold;
8585
}
8686
.label {
@@ -93,7 +93,7 @@ h2 {
9393
border-radius: 3px;
9494
}
9595
.label.skip {
96-
background-color: #ec971f;
96+
background-color: #fed84f;
9797
color: white !important;
9898
}
9999
.label.debug, .label.trace, .label.error, .label.keyword {
@@ -104,13 +104,13 @@ h2 {
104104
font-weight: bold;
105105
}
106106
.label.error, .label.fail {
107-
background-color: #d9534f;
107+
background-color: #ee5919;
108108
}
109109
.label.pass {
110-
background-color: #5cb85c;
110+
background-color: #97bd61;
111111
}
112112
.label.warn {
113-
background-color: #ec971f;
113+
background-color: #b62109;
114114
}
115115
/* Top right header */
116116
#top-right-header {
@@ -206,13 +206,13 @@ th.stats-col-graph:hover {
206206
height: 100%;
207207
}
208208
.fail-bar {
209-
background: #f33;
209+
background: #ee5919;
210210
}
211211
.pass-bar {
212-
background: #1d4;
212+
background: #97bd61;
213213
}
214214
.skip-bar {
215-
background: #ec971f;
215+
background: #fed84f;
216216
}
217217
/* Tablesorter - adapted from provided Blue Skin */
218218
.tablesorter-header {

0 commit comments

Comments
 (0)