Skip to main content

Screenshot diff and baseline helpers for Godot visual smoke tests.

Project description

Godot Visual Smoke Test Kit

Screenshot diff and baseline helpers for Godot visual smoke tests. It reads scene/viewport config, compares PNG screenshots, writes diff images, approves baselines, and prints planned Godot capture commands.

The first release keeps Godot execution out of unit tests, so the package is easy to run in CI and safe to develop without a specific engine install.

Install

python -m pip install -e .

When published:

python -m pip install godot-visual-smoke-test-kit

Quick Start

godot-visual-smoke plan visual-smoke.toml --project . --godot C:\Tools\Godot.exe
godot-visual-smoke plan visual-smoke.toml --project . --format json
godot-visual-smoke compare baselines\menu.png current\menu.png --diff diffs\menu.png
godot-visual-smoke approve current\menu.png baselines\menu.png
godot-visual-smoke compare baselines\menu.png current\menu.png --format json --output visual-report.json

What It Does

  • Parses visual-smoke.toml.
  • Supports named viewport presets.
  • Compares baseline and current PNG screenshots.
  • Applies per-channel pixel tolerance.
  • Fails when changed pixel percentage exceeds the configured threshold.
  • Writes red diff images.
  • Copies approved screenshots into baseline paths.
  • Prints Godot capture commands for a project-owned helper script.

Documentation

Development

python -m pip install -e .
python -m unittest discover -s tests -v
godot-visual-smoke plan examples\visual-smoke.toml --project examples\tiny-godot-project

Examples are generic. Do not publish screenshots from private projects unless they have been reviewed.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

godot_visual_smoke_test_kit-0.1.1.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

godot_visual_smoke_test_kit-0.1.1-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file godot_visual_smoke_test_kit-0.1.1.tar.gz.

File metadata

File hashes

Hashes for godot_visual_smoke_test_kit-0.1.1.tar.gz
Algorithm Hash digest
SHA256 be86901f0859b30e9b22affa9c6a9c05b89e402d31108f228741f5321242c822
MD5 ea55806bb1c6b4e79402633f5a050c71
BLAKE2b-256 0317e5dc66139a41753f1b2ba1ced3c5b3f36109debfeb322a9a3dd95c7c17ce

See more details on using hashes here.

Provenance

The following attestation bundles were made for godot_visual_smoke_test_kit-0.1.1.tar.gz:

Publisher: publish-visual-smoke-test-kit.yml on NonniGB/godot-production-toolkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file godot_visual_smoke_test_kit-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for godot_visual_smoke_test_kit-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7ee0cc1f4788f9f4a65a5bc6650ac23bf97a321d5a8735250d84bc0ab7ceafda
MD5 4ae7c118fb732e52ba7e30392c6fe71c
BLAKE2b-256 5b5ed9a28dfd02feff1f7b44a32079af9dcc1593d8ee91c6eaf24632686264eb

See more details on using hashes here.

Provenance

The following attestation bundles were made for godot_visual_smoke_test_kit-0.1.1-py3-none-any.whl:

Publisher: publish-visual-smoke-test-kit.yml on NonniGB/godot-production-toolkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page