Skip to content

Move the unit tests into a tests/ directory - #37

Merged
CrypticSwarm merged 2 commits into
masterfrom
tests-into-tests-dir
Aug 5, 2026
Merged

Move the unit tests into a tests/ directory#37
CrypticSwarm merged 2 commits into
masterfrom
tests-into-tests-dir

Conversation

@CrypticSwarm

Copy link
Copy Markdown
Owner

The unit test modules sat in scripts/ next to skill_eval.py, the LLM eval harness — the only thing left in there that is genuinely a script. Discovery had to be pointed at a directory holding two unrelated kinds of file, and every test module's own location suggested scripts/ was where new tests belonged.

They now live in tests/, and make test — the target CI runs — discovers from there. skill_eval.py stays behind; the Makefile mounts it into the container by path, so it is a tool, not a test.

This is a pure move. Each module already computed the repo root as its parent directory and imported swarmforge normally, and tests/ sits at the same depth as scripts/ did, so the only edit inside the moved files is the path in the "Run:" line of each docstring. The README, the contributor notes, and two module docstrings that name their pinning test file are repointed to match.

Verified with the same discovery run CI uses: 495 tests collected before and after, and the collected test IDs compare identical between the two revisions. Each file still runs standalone as its docstring claims. The launcher's byte-identical passthrough test and the run_agent_container argv tests — the two that pin behavior nothing here is allowed to move — pass unchanged.

The test modules sat in scripts/ alongside skill_eval.py, the LLM eval
harness, which is the only thing left in there that is genuinely a script.
Discovery had to be pointed at a directory whose contents were two unrelated
kinds of file, and every test module's own name suggested scripts/ was where
new tests belonged.

They are now tests/, and `make test` -- the target CI runs -- discovers from
there. Each module already computed the repo root as its parent directory
and imported the package normally, so the move is the rename plus the path
in the "Run:" line of each docstring. skill_eval.py stays behind; the
Makefile mounts it into the container by path.
The README and the contributor notes both described the unit suite as
`scripts/test_*.py` and gave the discovery command against scripts/, and two
module docstrings named the test file that pins their behavior by its old
path.
@CrypticSwarm
CrypticSwarm merged commit 1ebae99 into master Aug 5, 2026
3 checks passed
@CrypticSwarm
CrypticSwarm deleted the tests-into-tests-dir branch August 5, 2026 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant