scadtest
A native test framework for OpenSCAD. You write tests in .scad, and the real
openscad binary judges values, expected failures and measured geometry.
Status: 0.x. Every v1 feature of the specification is implemented. Until 1.0.0 a minor release may change the API; the changelog says how.
use <scadtest.scad>
use <../gears.scad>
st_eq("pitch radius", pitch_radius(teeth = 20, mod = 2), 20);
st_approx("involute end", involute(30), [0.5, 0.0898], abs = 1e-4);
st_case("rejects zero teeth", fails = "teeth must be > 0") gear(teeth = 0);
st_case("gear is one closed solid")
st_measure("gear", shells = 1, size = [44, 44, 8], len_tol = 0.01) gear(teeth = 20);
st_case("gears mesh without colliding")
st_disjoint("pair", vol_tol = 1e-6) { gear(teeth = 20); translate([42, 0, 0]) gear(teeth = 20); }
pip install scadtest # Python 3.11 or later, no dependencies; bundles scadtest.scad
scadtest tests/ # each case in its own openscad process; exit 0 only if all pass
Value checks, cases and expected failures work on OpenSCAD 2021.01 and later.
Geometry checks need exact STL export, which 2026 builds have and 2021.01 does
not: there they are reported unsupported, never passed.
st_case(name, set = [["height", 50]]) runs one case with top-level variables
overridden, as the Customizer does. A name that the test file, or a file it
includes, does not assign is an error, not a silent test of the default.
Development
just setup # dev dependencies (uv)
just check # format, lint, type-check
just test # tests; SCADTEST_BINARIES="openscad-stable openscad" runs the
# end-to-end tests on each binary (default: openscad)
License
MIT
Metadata
Release files for scadtest 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| scadtest-0.1.0.tar.gz | 44.6 kB | With provenance | Details for scadtest-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| scadtest-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for scadtest-0.1.0-py3-none-any.whl |
Total release size: 73.7 kB
Release files / scadtest-0.1.0.tar.gz
| Download URL | scadtest-0.1.0.tar.gz |
|---|---|
| Size | 44.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
36f35fbef9bbe75969e53db80798d0ef02bf13d61418818c8fa6b7d2e96dc781
|
|
BLAKE2b-256 checksum How to use checksums |
c211274fc024978da213475753b5639ac1fb4be5505974378e3d364fe8f76420
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.
Transparency logRelease files / scadtest-0.1.0-py3-none-any.whl
| Download URL | scadtest-0.1.0-py3-none-any.whl |
|---|---|
| Size | 29.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3292b68a504e1588b440cf95c5b2e8c332afc8f8f7c46596003060261b4d80a9
|
|
BLAKE2b-256 checksum How to use checksums |
e2c5a402724f7471fb40e60ad2149ae71dd7423c78fd13d93cf64e26d8412bf2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.
Transparency logSecurity for scadtest 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for scadtest-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.