Skip to content

Add more thorough testing for boxplots - #274

Merged
smarr merged 2 commits into
masterfrom
test-boxplots
Nov 7, 2026
Merged

smarr merged 2 commits into
masterfrom
test-boxplots

Conversation

@smarr

@smarr smarr commented Nov 7, 2026

Copy link
Copy Markdown
Owner

This is adds more direct testing of boxplot rendering with concrete examples.
The goal is to cover the rendering a bit more, since I want to replace it eventually.
Currently, this is one of the parts of the report rendering that takes the most time, and the SVGs are very large, too.

smarr added 2 commits November 6, 2026 18:33
I want to replace chart.js at some point by just generating SVG.
Given that our boxplots are fairly simple, this should be making them much more compact.
But, before that, let’s improve test coverage.

Signed-off-by: Stefan Marr <git@stefan-marr.de>
Corrindates in SVG files may be slightly different, because of floating point instruction ordering causing different errors.

This ignores difference within a certain tolerance.
We grab all numbers from the SVG and compare them with the expected one, allowing for a tolerance.

Signed-off-by: Stefan Marr <git@stefan-marr.de>
@smarr smarr added the enhancement New feature or request label Nov 7, 2026
@smarr
smarr merged commit 008c238 into master Nov 7, 2026
2 checks passed
@smarr
smarr deleted the test-boxplots branch November 7, 2026 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant