원클릭으로
write-tests
Write or update unit tests for changed code, following project conventions and ensuring coverage meets the 80% threshold.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Write or update unit tests for changed code, following project conventions and ensuring coverage meets the 80% threshold.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Run the full development pipeline autonomously without pausing between phases. Stops only on quality-gate failures.
Run test coverage measurement, analyze results, and fix gaps when coverage falls below the 80% threshold.
Fetch unresolved PR review threads, triage them, implement fixes, validate, reply in-thread, and resolve.
Stage, commit, push, and open a GitHub PR following project conventions. Use when code is ready to ship.
Run structured evaluations on skills to measure quality and track improvements.
Review local code changes for correctness, regressions, missing tests, and Databao-specific risks.
| name | write-tests |
| description | Write or update unit tests for changed code, following project conventions and ensuring coverage meets the 80% threshold. |
Read the source module(s). Focus on:
Skip: third-party internals, Streamlit UI, trivial pass-throughs.
Tests in tests/ mirror source modules:
| Source | Test file |
|---|---|
src/databao_cli/commands/init.py | tests/test_init.py |
src/databao_cli/commands/build.py | tests/test_build.py |
src/databao_cli/mcp/tools/<name>.py | tests/test_mcp.py |
src/databao_cli/commands/datasource/add.py | tests/test_add_datasource.py |
Add to existing file when possible.
pytest only, no unittest.TestCase.project_layout fixture for project dirs, tmp_path for filesystem.click.testing.CliRunner, import cli from databao_cli.__main__.test_<action>_<scenario>.-> None on all test functions.Specific assertions over truthiness. Include context:
assert result.exit_code == 0, f"Expected success but got: {result.output}"
uv run pytest tests/test_<module>.py -v
make test-cov-check
Repeat until 80% threshold met.
Run make check. Fix ruff/mypy errors in test code.