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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file godot_visual_smoke_test_kit-0.1.0.tar.gz.
File metadata
- Download URL: godot_visual_smoke_test_kit-0.1.0.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92d773c67091cbfb159e0538a1f30cd0349c3ff24e55a7717f4aa30f4d208897
|
|
| MD5 |
1ded62a97cf5c9ef7cb895b3081c170b
|
|
| BLAKE2b-256 |
3f5d8c0073d3182cccd3324fd66f1cd3d16094ca0103ca351c9dc63f64bc5f8f
|
Provenance
The following attestation bundles were made for godot_visual_smoke_test_kit-0.1.0.tar.gz:
Publisher:
publish-visual-smoke-test-kit.yml on NonniGB/godot-production-toolkit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
godot_visual_smoke_test_kit-0.1.0.tar.gz -
Subject digest:
92d773c67091cbfb159e0538a1f30cd0349c3ff24e55a7717f4aa30f4d208897 - Sigstore transparency entry: 1764385722
- Sigstore integration time:
-
Permalink:
NonniGB/godot-production-toolkit@844f784017f10f16a1052f49a5d68a16db3a1699 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/NonniGB
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-visual-smoke-test-kit.yml@844f784017f10f16a1052f49a5d68a16db3a1699 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file godot_visual_smoke_test_kit-0.1.0-py3-none-any.whl.
File metadata
- Download URL: godot_visual_smoke_test_kit-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a212eca3161c43094aa78dab9dbcb6c28bf21c1ff0718a1268b539ebb6f39a3d
|
|
| MD5 |
c0d888c31338046836a01d2a46ccbe46
|
|
| BLAKE2b-256 |
408d60e755aa91e2025a908abe0291930b6b0e0e40701b3305965896e0e3e434
|
Provenance
The following attestation bundles were made for godot_visual_smoke_test_kit-0.1.0-py3-none-any.whl:
Publisher:
publish-visual-smoke-test-kit.yml on NonniGB/godot-production-toolkit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
godot_visual_smoke_test_kit-0.1.0-py3-none-any.whl -
Subject digest:
a212eca3161c43094aa78dab9dbcb6c28bf21c1ff0718a1268b539ebb6f39a3d - Sigstore transparency entry: 1764385756
- Sigstore integration time:
-
Permalink:
NonniGB/godot-production-toolkit@844f784017f10f16a1052f49a5d68a16db3a1699 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/NonniGB
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-visual-smoke-test-kit.yml@844f784017f10f16a1052f49a5d68a16db3a1699 -
Trigger Event:
workflow_dispatch
-
Statement type: