$npx skillfedfor your agent

pytest-textual-snapshot

Snapshot testing for Textual apps

With conditionsPyPI TestingReleased Jan 2025343.8K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pytest_textual_snapshot-1.1.0-py3-none-any.whl
v1.1.0 · released 2025-01-23 · Python <4.0.0,>=3.8.1 · 5 runtime deps: pytest, rich, textual, syrupy, jinja2

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.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires textual and pytest to be installed; your Textual app must be a non-running App instance or a path to a file containing an App subclass.
  • Low friction installation as a pure Python wheel.
  • Dormant maintenance status (568 days since last release) means no active development, though marked Production/Stable.

License · maintenance · safety

MIT (permissive) — MIT license is permissive, allowing use in commercial and open-source projects with minimal restrictions—just retain the license notice.

last release 2025-01-23 (568 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 343,784 downloads/mo, #7,380 on PyPI

Verify before relying

pip install pytest-textual-snapshot

# In your test file:
def test_my_app(snap_compare):
    app = MyTextualApp()
    assert snap_compare(app)

# Or with key presses:
def test_with_interaction(snap_compare):
    assert snap_compare("path/to/app.py", press=["tab", "left"])
  • Whether the package works reliably with the latest versions of textual, given the dormant maintenance status.
  • Performance characteristics when running large numbers of snapshot tests in parallel with pytest-xdist.
Same gist for agents: .md · .json

What it is and 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.

The 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.

Use it for

  • 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.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

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.

Install

pytest-textual-snapshot on PyPI

Before you install

Low friction installation as a pure Python wheel. Dormant maintenance status (568 days since last release) means no active development, though marked Production/Stable.

Requires textual and pytest to be installed; your Textual app must be a non-running App instance or a path to a file containing an App subclass.

License in practice

MIT license is permissive, allowing use in commercial and open-source projects with minimal restrictions—just retain the license notice.

Quickstart

pip install pytest-textual-snapshot

# In your test file:
def test_my_app(snap_compare):
    app = MyTextualApp()
    assert snap_compare(app)

# Or with key presses:
def test_with_interaction(snap_compare):
    assert snap_compare("path/to/app.py", press=["tab", "left"])

Verify before relying

  • Whether the package works reliably with the latest versions of textual, given the dormant maintenance status.
  • Performance characteristics when running large numbers of snapshot tests in parallel with pytest-xdist.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release <4.0.0,>=3.8.1
Install frictionLow. Pure-Python wheel
Runtime dependencies
5 packages
pytestrichtextualsyrupyjinja2
MaintenanceDormant 568 days since the last release
First released
Downloads343,784 / month, #7,380 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableFramework :: PytestIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Testing

Evidence: pytest_textual_snapshot-1.1.0-py3-none-any.whl

Tags

Capabilities
textual app snapshot testingpytest visual regression testingterminal ui screenshot comparisontextual tui testingsnapshot testing terminal apps
Topics
textual-testingvisual-regressionsnapshot-testing

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “textual app snapshot testing”

  • pytest-textual-snapshotA pytest plugin that captures SVG screenshots of Textual terminal…
  • textual-devtextual-dev provides a command-line tool for developing and testing…
  • textual-serveRuns any Textual terminal application in a web browser by wrapping it…

Give your agent the search over MCP, or paste the wish link into any chat.

More Testing packages

pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo
virtualenv Worth it
PyPI · Libraries · released Aug 2026

virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.

MITpure Python · 3.9+
532.9Mdownloads / mo
coverage Worth it
PyPI · Testing · released Aug 2026

Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.

Install it if you want to measure test completeness or enforce coverage thresholds in your project.

permissive licensepure Python · 3.10+
335.8Mdownloads / mo
pytest-asyncio Worth it
PyPI · Testing · released May 2026

pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.

Install it if you write tests for any asyncio-based code.

Apache-2.0pure Python · 3.10+
275.9Mdownloads / mo
pytest-json-ctrf Worth it
PyPI · Testing · released Jul 2026

A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.

Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.

MITpure Python · 3.8+
273.0Mdownloads / mo

See also pytest-playwright-visual · inline-snapshot · percy-selenium · percy-appium-app · snapshottest · pytest-insta · pytest-snapshot · textual-dev · syrupy · pytest-mpl