qa-automate
/qa-automate
Turn test cases, acceptance criteria or a fixed bug into automated tests in the project's own test suite — at the lowest level that can catch the failure (unit, integration, API, end to end), mirroring the existing tests, stable (no fixed sleeps, selectors by role or label, data the test owns), and proven by failing without the fix. Use when the project has a test suite and the user says "viết test tự động", "automate test case này", "thêm test cho bug này", or after a bug fix in a repo whose rules ask for tests.
- Author
- TrinhVanHiep ↗
- Repository
- bdt-kit ↗
- Licence
- MIT
- Last repository change
- 30.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 30.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Turn test cases, acceptance criteria or a fixed bug into automated tests in the project's own test suite — at the lowest level that can catch the failure (unit, integration, API, end to end), mirroring the existing tests, stable (no fixed sleeps, selectors by role or label, data the test owns), and proven by failing without the fix. Use when the project has a test suite and the user says "viết test tự động", "automate test case này", "thêm test cho bug này", or after a bug fix in a repo whose rules ask for tests.
Triggers from the description
Original author description
Turn test cases, acceptance criteria or a fixed bug into automated tests in the project's own test suite — at the lowest level that can catch the failure (unit, integration, API, end to end), mirroring the existing tests, stable (no fixed sleeps, selectors by role or label, data the test owns), and proven by failing without the fix. Use when the project has a test suite and the user says "viết test tự động", "automate test case này", "thêm test cho bug này", or after a bug fix in a repo whose rules ask for tests.
How it works
- Gate
- Pick the level
- Mirror the suite
- Write a stable test
- Prove it
- Record
SKILL.md preview
--- name: qa-automate description: Turn test cases, acceptance criteria or a fixed bug into automated tests in the project's own test suite — at the lowest level that can catch the failure (unit, integration, API, end to end), mirroring the existing tests, stable (no fixed sleeps, selectors by role or label, data the test owns), and proven by failing without the fix. Use when the project has a test suite and the user says "viết test tự động", "automate test case này", "thêm test cho bug này", or after a bug fix in a repo whose rules ask for tests. --- # qa-automate **Input:** what to automate (test-case IDs, ACs, a bug), the project's test suite, its rules and the dev profile in `.bdt/dev/` (TEST conventions, stack packs). **Output:** test files that follow the suite's own patterns, the command and its result, and rows in `.bdt/TESTS.md` (level, test file in Method, tags). ## Gate - The project has a test suite and its rules allow new tests (`.bdt/PROJECT.md` → Commands → Tests and "Project rules that override the kit", and the project's own rules). Some projects forbid tests: then stop here. - No suite: do not set one up. A new framework, dependency or CI step is a stop-and-confirm item; offer it as a proposal. ## Pick the level - The lowest level that would have caught the failure: logic → unit; a component with its state, or the API layer against a mocked server → integration; an endpoint's contract → API test on a local server; a flow across pages → end to end. - One end-to-end test per critical flow, not one per case. Data-heavy boundaries belong in unit or API tests. - Automate what repeats (smoke, regression, boundaries); a one-off visual check stays manual. ## Mirror the suite Find the closest existing test of the same kind (near the code under test, same level) and copy its structure, helpers, fixtures, naming and file placement. Follow the TEST rules in `.bdt/dev/CONVENTIONS.md` and the stack pack's Implement and Verify sections. ## Write a stable test - One behaviour per test, named by that behaviour, with the case or bug ID in the name or a comment so `TESTS.md` can point to it. - The test creates the data it needs (inside the test or a fixture it owns) and cleans up; it never depends on test order or on data another test left. - Wait for a condition (element visible, request finished), never a fixed sleep. - Find elements the way a user does (role, label, visible text) or by the project's test IDs; never by CSS paths or generated class names. - Control time, timezone and randomness for date and ID cases (fake timers, a fixed date, seeded values). - Network: the project's mock layer for unit and integration; a local server for API and end-to-end tests; never shared dev or staging, never production. - Assert the observable result of the case (text, state, request body, response), not implementation details. ## Prove it - For a bug: run the new test against the code without the fix and see it fail for the bug's reason, then pass with the fix. A test that passes on broken code proves nothing. - For a case: break the behaviour once on purpose (or invert the assertion), see the test fail, and restore it. - Run the new tests three times; a test that flips is not done. - Never weaken an assertion, skip a test, add a retry or silence a check to get green (the stack pack lists the forms). ## Record - `TESTS.md`: one row per automated case with Level, Method = test file and name, Tags (`smoke`, `regression`), Evidence = command, result and date. - The test-case sheet: "automated: <test file>" in the Note column, written with `qa-run` (`docfill.py results`). - Report the command, the result line and the fail-before-fix evidence. Do not commit; the change goes through `qa-verify` and Gate 2 like any other.
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · TrinhVanHiep/bdt-kit | 90 | MIT |
| marceloancieta/web-qa-agentic-framework | 100 | Apache-2.0 |
Database snapshot: 13.11.2026 · package version 06b2b74332ba (SHA-256 digest of the entire package)
Downloads in the last 30 days: 1 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 90sdlc-qa-automate
Turn approved automatable test cases from testcases/<NNN-slug>/test-cases.md into real automated tests in the project's existing suite, test-first, and record which cases are covered. Use when test cases are approved and the user says \"automate the test cases\", \"qa… - 100automate
Convert manual test cases into automated tests (Playwright for UI, pytest/requests for API) and help build or extend a test automation framework. Use when the user wants to automate test cases, write Playwright/Selenium scripts, or set up test automation. - 90automate-tests
Turn test cases into runnable automated tests, drive a real browser to explore and verify behavior, run the tests, and auto-fix them until they pass. The execute step of the `qa` skill; use it directly for a single test-writing or test-fixing task the user scopes themselves… - 100test-case-authoring
Write the test plan and test cases for a single work item: every acceptance criterion traced to a case, each case with test data, steps, an observable expected result, a level, and the evidence a pass must leave behind. Use this skill whenever the user wants to write test cases,… - 90verify-fix
WAY 9 — verify that a bug is fixed by running its regression test. Use when the user says "verify it", "verify fix", "is #142 fixed", "check the fix" with one or more bug refs (#142, SHOP-142), or "verify all" for every open bug that has a regression test. - 90playwright-e2e
Write or fix Playwright end-to-end tests (TypeScript or Python) with user-facing locators, web-first assertions, isolated test data and no fixed sleeps, then run them and iterate until they pass for the right reason. Use when asked for UI/E2E tests, to automate a scenario, or to…