Skip to main content

Module self_test

Module self_test 

Source
Expand description

Self-test spec for testing autom8 itself.

Provides a hardcoded trivial spec that exercises the normal autom8 flow without modifying any real code. The spec creates and modifies a dummy file (test_output.txt) in the repo root.

Structs§

CleanupResult
Result of a cleanup operation with details about what was cleaned.

Constants§

SELF_TEST_BRANCH
Branch name used for self-test runs.
SELF_TEST_FILE
Target file for self-test operations.
SELF_TEST_SPEC_FILENAME
Filename for the self-test spec in the config directory.

Functions§

cleanup_self_test
Clean up all self-test artifacts.
create_self_test_spec
Creates the hardcoded self-test spec.
print_cleanup_results
Print cleanup results.
print_failure_details
Print detailed error information before cleanup (for failure cases).