drivendataorg / drivendataorg/erdantic

Write tests against static rendered png and svg outputs

Open
#20 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
419
Forks
30
PR merge metrics
No merged PRs in 30d

Description

Right now we don't fully check rendered content on diagrams, but we should.

~We should do this in a parameterized way to reduce the amount of testing code to be maintained. We can use pytest's fixtures to load the example classes and/or created diagram objects.~ Addressed in #21.

#21 addressed creating the static outputs, and has a test that checks the against the static DOT files. Still need tests that check png and svg formats.

Contributor guide

Open the contributing guide

Research direction

Start by reading the test from #21 that checks static DOT files and inspect the example classes or diagram objects it uses. Use pytest fixtures or parameterization for the existing cases, extending coverage to PNG and SVG outputs. Done means rendered PNG and SVG content is checked alongside the DOT outputs.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing-qa
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.