boundary-negative-testing
Use when building cases for any input, form, endpoint or state change - boundary values, invalid and hostile data, authz and concurrency cases with a worked example
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 122
- Forks
- 18
01 前言 Front Matter
- name
- boundary-negative-testing
- category
- qa
- description
- Use when building cases for any input, form, endpoint or state change - boundary values, invalid and hostile data, authz and concurrency cases with a worked example
03 SKILL.md 正文
Boundary and Negative Testing
Data catalogue
- Strings: empty, whitespace-only, 1 char, max, max+1, 10x max, leading/trailing spaces, emoji/ZWJ, RTL text, combining marks,
<b>x</b>and<img src=x onerror=alert(1)>(must render as inert text, never execute),' OR 1=1 --(as literal data),../../etc/passwdin a filename-ish field. - Numbers: −1, 0, 1, max, max+1, a decimal where an integer is expected,
1e309,NaN. - Dates: leap day, a DST transition, a timezone boundary, past/future limits the domain implies.
- Files: 0 bytes, just over the size limit, wrong MIME type with a correct-looking extension.
- Collections: 0 items, 1 item, exactly the page size, page size + 1.
- Concurrency: double submit, two sessions editing the same record.
- Dependency down: the stubbed dependency returns 5xx/timeout (test-data-and-stubs), or
route "**/api/<dep>/**" --status=500for a UI-only case.
Flow-level cases
Unauthorized access, missing resources (404 paths), concurrent/duplicate submission, partial failure of a dependency.
Recording
Record every boundary you probed as its own test case on the task, passing ones included — absence of evidence is not evidence of absence, and a boundary nobody can see you tried is one the next reader has to try again. A boundary that cannot exist here (the field is an enum, the endpoint is internal-only) is a case too: record it invalid with that reason.
04 同仓库更多 Skills
visual-craft
暂无简介
ux-copy
Use when you write any words a user reads in a mockup or a hand-off - content language and voice, buttons, labels, errors, empty states, confirmations, numbers and dates, and the longest-string check
screen-mockup-html
Use when you draw screens as the design task's HTML mockup - ONE canvas document holding every screen and every variant side by side, the sanitizer-safe recipe, phone and wide frames, the states grid, static control states, and the loopback self-check with screenshots at 375, 768 and 1440 attached to the task
performance-awareness
How the performance score moves for your role. Use when the score context shows a declining trend, or before handing off work you have not self-checked against every criterion.
design-variants
Use when a screen design needs variants - how many, variants as side-by-side rows on the one canvas, what makes two variants genuinely different, recommending one, how the human's choice is read, and narrowing to the chosen one in revision
design-system-authoring
Use when you derive, change or extend a design system - where tokens live per stack, the DTCG token tree, role-based names for both themes, base vs layer vs drift, the DESIGN.md section order, the inventory format, the contrast check and the lint every proposal returns