{"data":{"slug":"discovered-f415607a738a8eb7cdc629022ae7a0a12065068ab26437ed","title":"Test-Driven QA","summary":"Write unit, integration, and end-to-end tests, practice TDD, create QA test plans, and improve test coverage. Deliverables include test code, QA checklists, and test strategies aligned with the testing pyramid.","url":"https:\/\/skillshunter.net\/skills\/discovered-f415607a738a8eb7cdc629022ae7a0a12065068ab26437ed","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-f415607a738a8eb7cdc629022ae7a0a12065068ab26437ed","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-f415607a738a8eb7cdc629022ae7a0a12065068ab26437ed.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-f415607a738a8eb7cdc629022ae7a0a12065068ab26437ed\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Ensure the testing environment is set up with necessary dependencies before running tests. Prepare test data and define clear test specifications before writing test cases.","instructions":"---\nname: test-driven-qa\ndescription: >-\n  Use this skill when writing unit, integration, or end-to-end tests, practicing TDD,\n  creating QA test plans, or improving test coverage. K\u00edch ho\u1ea1t khi ng\u01b0\u1eddi d\u00f9ng y\u00eau c\u1ea7u vi\u1ebft test,\n  ki\u1ec3m th\u1eed ph\u1ea7n m\u1ec1m, l\u1eadp k\u1ebf ho\u1ea1ch QA, ki\u1ec3m tra edge case ho\u1eb7c \u0111\u1ea3m b\u1ea3o ch\u1ea5t l\u01b0\u1ee3ng tr\u01b0\u1edbc khi ph\u00e1t h\u00e0nh.\n---\n\n# Test-Driven QA\n\nBuild confidence in software behavior through fast, deterministic, high-signal automated tests and thorough QA checklists.\n\n## Workflow\n\n1. **Define Test Strategy (Testing Pyramid)**\n   - **Unit tests**: Pure business logic, edge cases, boundary inputs, state transitions.\n   - **Integration tests**: Database queries, API endpoints, service boundaries, serialization.\n   - **End-to-End (E2E) tests**: Critical user journeys (auth, checkout, core CRUD workflows).\n2. **Apply Red-Green-Refactor (When Building New Features or Fixes)**\n   - **Red**: Write a failing test capturing the exact specification or bug first.\n   - **Green**: Implement the minimal code required to pass.\n   - **Refactor**: Clean up code and tests while keeping the suite green.\n3. **Cover Essential Edge Cases**\n   - Empty\/null inputs, maximum\/minimum boundaries, duplicate submissions, unauthorized users, network\/timeout failures, and invalid formats.\n4. **Keep Tests Clean & Deterministic**\n   - Follow Arrange-Act-Assert (AAA) structure with descriptive test names (`should_<expected>_when_<condition>`).\n   - Mock only external boundaries (network, clock, third-party APIs); avoid over-mocking internal implementation details.\n   - Ensure zero shared mutable state between tests so they run in any order.\n5. **Verify Before Declaring Done**\n   - Execute the full relevant test suite and report pass\/fail counts, skipped tests, and any untested risk areas.\n","use_cases":["Writing unit tests for business logic and edge cases","Creating integration tests for API endpoints and database queries","Designing end-to-end tests for critical user journeys","Practicing TDD with the Red-Green-Refactor workflow","Improving test coverage with thorough QA checklists"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/thanhn08502-cmd\/ai-skills-dev\/blob\/af74c372e97d85cb399661fdda66320b15c4eaa5\/skills\/test-driven-qa\/SKILL.md","source_commit":"af74c372e97d85cb399661fdda66320b15c4eaa5","license":null,"version":null,"listing_approved_at":"2026-12-02","created_at":"2026-11-30T09:03:59.000000Z","updated_at":"2026-12-02T09:15:52.000000Z","seo_title":"Test-Driven QA Skill","seo_description":"A skill for writing unit, integration, and end-to-end tests, practicing TDD, and creating QA test plans to ensure software quality and test coverage.","seo_keywords":["test-driven development","unit testing","integration testing","end-to-end testing","QA checklist","test coverage","TDD workflow","software testing"]}}