Closed BrianPugh closed 4 months ago
Thanks for this. My PC is currently out of service so I'll be able to merge and publish it in a few days
Hey @wasi-master ! Just a gentle reminder about these. Thanks again!
👀
@BrianPugh Released with version https://github.com/wasi-master/rich-rst/releases/tag/v1.3.0 also available on pypi. Many thanks for this 💖
Adds a basic unit/integration testing infrastructure:
tests/test_main.py
haspytest
iterate over.rst
files intests/test_vectors/
. It generates an html equivalent (the gitignoredtests/test_vectors/*_actual.html
) and compares it to the stored-in-repotests/test_vectors/*_expected.html
.The current test vectors are copied from the
demo/
folder may have errors, but it's (probably) a good starting point to make future changes to the repo. They sort of serve as a generic, large-coverage "integration" test. If a code-change produces visually different outputs, hopefully it results in a small diff in thetests/test_vectors/
that is easy to grok in a PR. It would be good in the future to add additionalrst
files that test individual components, like "bullet points" or "code-block", etc.