Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Commander
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
INS Courses
AutPy
Commander
Commits
f4e679b9
Commit
f4e679b9
authored
2 years ago
by
Florian Bruhin
Browse files
Options
Downloads
Patches
Plain Diff
Initial support for displaying skipped tests
parent
f1b7c108
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
commander/gui/overview.py
+9
-3
9 additions, 3 deletions
commander/gui/overview.py
commander/gui/selectors.py
+1
-1
1 addition, 1 deletion
commander/gui/selectors.py
commander/gui/utils.py
+1
-1
1 addition, 1 deletion
commander/gui/utils.py
with
11 additions
and
5 deletions
commander/gui/overview.py
+
9
−
3
View file @
f4e679b9
...
...
@@ -73,9 +73,15 @@ class OverviewModel(QAbstractTableModel):
return
utils
.
OUTCOME_COLORS
[
value
]
def
_data_message
(
self
,
report
:
dict
[
str
,
Any
])
->
str
:
if
report
[
"
outcome
"
]
==
"
passed
"
:
outcome
=
report
[
"
outcome
"
]
if
outcome
==
"
passed
"
:
return
""
msg
=
report
[
"
longrepr
"
][
"
reprcrash
"
][
"
message
"
]
longrepr
=
report
[
"
longrepr
"
]
if
outcome
==
"
skipped
"
:
return
longrepr
[
-
1
]
msg
=
longrepr
[
"
reprcrash
"
][
"
message
"
]
return
msg
.
replace
(
"
\n
"
,
"
"
*
4
)[:
300
]
def
data
(
self
,
index
:
QModelIndex
,
role
:
int
=
Qt
.
ItemDataRole
.
DisplayRole
)
->
Any
:
...
...
@@ -141,7 +147,7 @@ class OverviewModel(QAbstractTableModel):
def
load_reports
(
self
,
reports
:
list
[
dict
[
str
,
Any
]])
->
None
:
self
.
_load_tag_mapping
(
reports
)
outcome_order
=
[
"
error
"
,
"
failed
"
,
"
passed
"
]
outcome_order
=
[
"
error
"
,
"
failed
"
,
"
skipped
"
,
"
passed
"
]
filtered_reports
=
sorted
(
(
...
...
This diff is collapsed.
Click to expand it.
commander/gui/selectors.py
+
1
−
1
View file @
f4e679b9
...
...
@@ -148,7 +148,7 @@ class TestSelector(Selector):
class
OutcomeSummary
(
QLabel
):
@pyqtSlot
(
dict
)
def
on_outcome_summary_loaded
(
self
,
summary
:
dict
[
str
,
int
])
->
None
:
order
=
[
"
passed
"
,
"
failed
"
,
"
error
"
]
order
=
[
"
passed
"
,
"
failed
"
,
"
skipped
"
,
"
error
"
]
parts
=
[]
for
outcome
,
count
in
sorted
(
summary
.
items
(),
key
=
lambda
item
:
order
.
index
(
item
[
0
])
...
...
This diff is collapsed.
Click to expand it.
commander/gui/utils.py
+
1
−
1
View file @
f4e679b9
...
...
@@ -19,7 +19,7 @@ OUTCOME_COLORS = {
"
passed
"
:
QColor
(
Qt
.
GlobalColor
.
darkGreen
),
"
failed
"
:
QColor
(
Qt
.
GlobalColor
.
red
),
"
error
"
:
QColor
(
Qt
.
GlobalColor
.
darkRed
),
"
skipped
"
:
QColor
(
Qt
.
GlobalColor
.
yellow
),
"
skipped
"
:
QColor
(
Qt
.
GlobalColor
.
gray
),
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment