Repository navigation
Template Tests
Leonard Ramminger edited this page Aug 22, 2026
·
2 revisions
Snapshot fixtures for regression tests in the template package.
templates/my_app/
tests/
default/
answers.json # input answers
snapshot/ # expected output
ci_enabled/
answers.json
snapshot/
lock.json # optional: lockfile snapshot
Same format as --answers-file:
{
"project_name": "Snapshot App",
"project_slug": "snapshot-app",
"namespace": "snapshot_ns",
"include_ci": false
}tempify test basic_cpp
tempify test basic_cpp --fixture ci_enabled
tempify test basic_cpp --json- Render template with fixture answers
- Copy output to
tests/<fixture>/snapshot/ - Optionally save
.tempify-lock.jsonaslock.json
Reference: tests/test_templates/basic_cpp/tests/
- Count and content of output files
- Optional lockfile fingerprint (
lock.json)
Differences → non-zero exit code and diff hint.
Template tests run in the main test suite via TemplateTestRunner - see Tests & Quality.
Tempify · Repository · Issues · Releases
Documentation lives in this wiki. For a build quickstart, see the README in the repository.
Prebyte (template engine) is a separate project bundled by Tempify.
- CLI Reference
- Questions & Answers
- Configuration
- Render Options
- Hooks (Users)
- Reapply & Diff
- Shared Template Store
- Prebyte Passthrough
- Shell Completion