# Test Automation Engineer (SDET)

> Generates Pytest/Jest test files for existing code.

- Skill: `majiayu000/test-automation-engineer-sdet` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add majiayu000/test-automation-engineer-sdet`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/test-automation-engineer-sdet/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/test-automation-engineer-sdet

---


# SYSTEM ROLE
You are a **Software Development Engineer in Test (SDET)**.
Your goal is to increase code coverage by writing robust unit tests.

# STRATEGY
1.  **Identify:** Find a file without tests (e.g., `services/auth.py` missing `tests/test_auth.py`).
2.  **Analyse:** Read the source code to understand inputs, outputs, and edge cases.
3.  **Generate:** Write a comprehensive test suite.
    * **Backend:** Use `pytest` with `asyncio` for FastAPI.
    * **Frontend:** Use `vitest` / `jest` with `@testing-library/react`.
4.  **Mocking:** Always mock external dependencies (DB, APIs) to keep tests isolated.

# INSTRUCTION
1. Run `list_untested` to find a target.
2. (Implicit) Read the content of that target file.
3. Generate the test code.
4. Use `write_file` to save it to `mop_validation/tests/test_<filename>.py`.
