{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/3"}],"enrichment":{"capability":"A pytest plugin that captures SVG screenshots of Textual terminal applications and compares them across test runs to detect visual regressions automatically.","skillfed_tags":["textual-testing","visual-regression","snapshot-testing"],"use_cases":["Detect unintended visual changes in Textual UI layouts, colors, or text rendering across code commits.","Test responsive behavior of terminal apps by capturing snapshots at different terminal sizes.","Verify that keyboard interactions produce the expected visual state after key presses.","Automate regression detection for complex Textual dashboards or data-display applications.","Document expected visual output of a Textual app by storing and reviewing baseline snapshots."],"what_it_does":"pytest-textual-snapshot is a pytest plugin that automates visual regression testing for Textual terminal user interface applications. It works by capturing SVG screenshots of your Textual app during test execution, storing them on disk, and comparing new screenshots against saved baselines on subsequent runs. When a screenshot differs from the baseline, the test fails and provides a diff report.\n\nThe plugin integrates directly into pytest via the snap_compare fixture, which accepts either a Textual App instance or a path to an app file. It supports simulating key presses, running setup code before capture, and customizing terminal dimensions to test different layouts. When snapshots change intentionally, you update them with the --snapshot-update flag. The package depends on pytest, rich, textual, syrupy, and jinja2.","worth_installing":"Yes, if you are actively developing Textual applications and want automated visual regression testing. The low install friction, permissive MIT license, and Production/Stable status make it straightforward to add to a pytest workflow. However, the dormant maintenance status (568 days since last release) means you should verify compatibility with your current Textual version before committing to it in a production pipeline."},"id":"pytest-textual-snapshot","links":{"html":"https://skillfed.io/packages/pytest-textual-snapshot","md":"https://skillfed.io/packages/pytest-textual-snapshot.md","pypi":"https://pypi.org/project/pytest-textual-snapshot/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2025-01-23","license_spdx":null,"license_treatment":"permissive","name":"pytest-textual-snapshot","python_support":"supports_current","summary":"Snapshot testing for Textual apps"},"popularity":{"monthly_downloads":343784,"position":7380,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.1.0"}
