For agent changes prefer integration tests over unit tests. Integration tests are under core/suite and use test_codex to set up a test instance of codex.
Features that change the agent logic MUST add an integration test:
Provide a list of major logic changes and user-facing behaviors that need to be tested.
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.
1---2name: code-review-testing3description: Test authoring guidance4---56For agent changes prefer integration tests over unit tests. Integration tests are under `core/suite` and use `test_codex` to set up a test instance of codex.
78Features that change the agent logic MUST add an integration test:
9- Provide a list of major logic changes and user-facing behaviors that need to be tested.
1011If unit tests are needed, put them in a dedicated test file (*_tests.rs).
12Avoid test-only functions in the main implementation.
1314Check whether there are existing helpers to make tests more streamlined and readable.
Run npx skillmds@latest add openai/code-review-testing in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Test authoring guidance It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
OpenAI (@openai) published this skill. Their other Agent Skills are listed on their SkillMD profile.