Skip to main content

Code Craft AI TestBase

Code Craft AI TestBase is a Python testing framework designed for automation testing with an emphasis on debuggability, readability, and resource-managed test execution. The framework provides structured discovery, dependency injection, sequencing, and results recording capabilities so complex test suites can remain isolated, extensible, and easy to troubleshoot.

Highlights

  • Test discovery and filtering with include/exclude expressions and metadata support.

  • Dependency injection with session/package/test lifecycles and centralized resource management.

  • Structured execution sequencing with diagnostics and result recording.

  • JSON result recording plus result browsing support.

  • Click-based CLI for running and managing tests.

Repository Structure

  • development/ - Runtime environment scripts.

  • repository-setup/ - Repository homing and setup scripts.

  • source/packages/ - Package source code.

  • source/tests/ - unittest-based tests.

  • source/testroots/ - TestBase framework self-tests (testroot).

  • specs/ - Requirements, design, and task documentation.

  • userguide/ - Standards, conventions, and documentation.

Environment Setup

When working in a Codex container, use the setup script below:

./development/setup-agent-container

For local development environments, run the repository homing and virtual environment setup scripts:

./repository-setup/rehome-repository
./development/setup-envrionment

Running Tests

Activate the virtual environment first:

source .venv/bin/activate

Run unittest tests:

python -m unittest discover -s source/tests -p "test_*.py"

Run TestBase tests:

testbase testing run --root "source/testroots" --include ccai

Standards and Conventions

  • Naming conventions: userguide/10-02-naming-conventions.rst

  • Code organization: userguide/10-01-code-organization.rst

  • Coding standards: userguide/10-00-coding-standards.rst

Additional Resources

  • User guide entry point: userguide/userguide.rst

  • Design documentation: specs/design.md

  • Requirements: specs/requirements.md

Metadata

Release files for codecraftai-testbase 1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for codecraftai-testbase 1.4.0
File Size Uploaded Provenance Actions
codecraftai_testbase-1.4.0.tar.gz 325.5 kB With provenance Details for codecraftai_testbase-1.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for codecraftai-testbase 1.4.0
File Interpreter ABI Platform Actions
codecraftai_testbase-1.4.0-py3-none-any.whl Python 3 none any Details for codecraftai_testbase-1.4.0-py3-none-any.whl

Total release size: 739.5 kB

Release files / codecraftai_testbase-1.4.0.tar.gz

Download URL codecraftai_testbase-1.4.0.tar.gz
Size 325.5 kB
Tags Source
SHA-256 checksum
How to use checksums
13a24b1e6e37213c6186d29a3a7b0b51e4a1d40cab13d441d574ec346c150070
BLAKE2b-256 checksum
How to use checksums
373acd9326d8f70ef9cd914e2af4c9957c7260aee416d69c80d44a9c651d9e04
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 log

Release files / codecraftai_testbase-1.4.0-py3-none-any.whl

Download URL codecraftai_testbase-1.4.0-py3-none-any.whl
Size 414.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
63f09423b8c25ba773b27ac443ec9db648a803689b154604fe0dc9d2a66db344
BLAKE2b-256 checksum
How to use checksums
59ec7bf37a0572f21e2f5cf1a20f62b938c8200c1925b761accc70e31bfad95a
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 log

Security for codecraftai-testbase 1.4.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.

Select from 2 files

Attestation for codecraftai_testbase-1.4.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 log

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

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page