Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Sets the rules for writing, reviewing and timing tests: test oracle, scenarios, assertions, fakes, naming, budgets and walking skeletons.
18% 100%+82 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 4 of 22 without it.
List the standard assertion predicate options supported across language implementations for state delta tracking expectations.
Includes set_to, unchanged, appended_with, and containing in the predicate set
This test ran on v1. v4 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Examples are Python; write in the project's own language. Rules on private imports and the driving-port example (1.4, 1.5, 7.7) bind acceptance tests; unit and property tests may exercise the public contract of a non-exported internal module.
tests/common the project lacks. A missing toolchain is an EVIDENCE_GAP you report, never a reason to switch stack.| Port | Focused test uses |
|---|---|
| Driving (CLI, API, hook, call) | the real entry called in-process with a capturing output port; no subprocess |
| Driven internal (repository, cache, read model) | in-memory fake |
| Driven external (clock, email, payment, LLM, third-party API) | fake that captures output so Then reads the side effect |
A real driven-internal adapter appears only in the walking skeleton or a declared adapter-integration test. No test double is defined or used inside domain or application code. Every in-memory fake rejects each input the real adapter rejects (None, empty string, out-of-range number, invalid enum). A port you cannot classify: ask. 7. Put business logic in pure functions first; parametrize fixtures only for the thin adapter layer. 8. When DESIGN declares a seam, name that exact seam, drive it through the real entry point and assert its observable effect. When DESIGN declares a contract-test obligation, feed real producer output to the real consumer (no mock echo, no hand-written producer record). When it declares an architectural-test obligation, cover it with one check that fails the law over everything the law governs (all modules, not a sample, including those added later), at the declared locator, by the project's own native means, whatever the law: layering, effects in adapters, ownership, entry points or file layout. The check counts as evidence only after you saw it fail on a deliberately violating example (item 5 of section 4). 9. Normal tests are scenarios through the public port. Every test file you write, including test kits, fixtures and support code, follows the File layout section of nw-code-craftsmanship; existing test files are not split by this rule. A test that exercises a type directly is the exceptional minority and follows the same section.
<DrivingPort>Should, method <expected_outcome>_when_<behaviour>[_given_<precondition>]; where there are no classes, one name with the same parts. Derive the name from the promise before writing it.class AccountServiceShould:
def test_increase_balance_when_deposit_made_given_sufficient_funds(self): ...
slice_NN, Mandate-12, ADR number, V3, step or commit name), production class, function or error-code constant. The only production name allowed is the public driving port in the class name <DrivingPort>Should; public protocol identifiers may also appear where the protocol is the promise. Titles are unique within the feature.Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.