From 569ff8b58df3b1137d18fe9aaed8c8173e06e18c Mon Sep 17 00:00:00 2001 From: Isaiah Odhner Date: Thu, 7 Sep 2023 14:59:14 -0400 Subject: [PATCH] Add info about pytest-textual-snapshot to readme --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 49673ec..20ca7e0 100644 --- a/README.md +++ b/README.md @@ -359,7 +359,7 @@ Also, note that it might not work with your Git GUI of choice; you may need to u - Make sure to run the program from the root directory of the repository. -### Linting +### Quality Assurance ```bash # Spell checking @@ -375,6 +375,12 @@ PYRIGHT_PYTHON_FORCE_VERSION=1.1.317 pyright PYRIGHT_PYTHON_FORCE_VERSION=1.1.318 pyright # I also tried mypy and fixed some errors it reported, but I'm not targeting zero errors with mypy. mypy src --no-namespace-packages --check-untyped-defs + +# Visual Regression Testing +# I use pytest-textual-snapshot, which is a pytest plugin for comparing SVG screenshots of Textual apps over time. +pytest +# To accept differences, update the baseline with: +pytest --snapshot-update ``` ## License