For agent changes prefer integration tests over unit tests. Integration tests are under
and use
to set up a test instance of codex.
If unit tests are needed, put them in a dedicated test file (*_tests.rs).
Avoid test-only functions in the main implementation.
Check whether there are existing helpers to make tests more streamlined and readable.