testsuite.figure¶
Bar diagram of a suite run, the figures docs/images/testsuite*.svg.
One horizontal bar per stage of the pipeline, stacked from the cases which pass, fail and skip the stage, so the drop along the pipeline is visible at a glance. The figure is written twice, for light and for dark backgrounds; both are transparent, so they fit the documentation site as well as the README on GitHub and PyPI.
dark_path
¶
Path of the figure for dark backgrounds.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
P
|
path of the figure for light backgrounds. |
required |
Returns:
| Type | Description |
|---|---|
P
|
The path with |
P
|
for |
render_figure
¶
Render the bar diagram.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
result
|
SuiteResult
|
a suite run. |
required |
title
|
str | None
|
start of the title, followed by the number of cases; the
SBML test suite with its version when |
None
|
dark
|
bool
|
whether the figure is for a dark background. |
False
|
cases
|
str
|
what a case is, in the title and on the axis, e.g. |
'cases'
|
Returns:
| Type | Description |
|---|---|
Figure
|
The figure with a transparent background. |
write_figures
¶
Write the bar diagram for light and for dark backgrounds.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
result
|
SuiteResult
|
a suite run. |
required |
path
|
Path
|
SVG file of the figure for light backgrounds, overwritten; the
figure for dark backgrounds goes to |
required |
title
|
str | None
|
start of the title of the figure, see |
None
|
cases
|
str
|
what a case is, see |
'cases'
|