ShtukbaseStandard

Testing

testing · version 0.2.0
Quality and tests6 norms3 checks

How we test and what the tests cover: quality tests with a contour, four levels of verification, a record of a run and of a defect, and coverage as risk → test → indicator → measurement; six norms, three held by checks and three by judges.

About the package

How we test and what the tests cover. The package comes from the "Quality" layer of an earlier product: the "How to test" page (four levels of verification, a record of a run and of a defect, a scale for the quality of a result), the coverage audit, and the product's check scripts (a test is found by its path, a "waiting" test is red for a reason, the run's count adds up). Everything here is generalized; the sales specifics remain as an example.

What it installs

  • The collection Quality tests (QualityTest) and its contour: planned → awaits the product → active, retired. A test refers to risks (risks), indicators (indicators) and, if the "Product" layer is present, to requirements and scenarios.
  • The pages How to test and Coverage.
  • Six norms:
    • QTS-R01: a serious risk is covered by a test or a decision; the check is risk-covered.
    • QTS-R02: a written test has a path or a reason; the check is test-path.
    • QTS-R03: a run is recorded in full and the count adds up; the check is run-record.
    • QTS-R04: a change of model or prompt only after a run with no regression; the judge is the merge reviewer (judges/model-change.md).
    • QTS-R05: a green lower level does not replace an upper one; the judge is whoever accepts the scenario (judges/four-levels.md).
    • QTS-R06: a defect is fixed with a test that fails without the fix; the judge is the reviewer of the fix (judges/defect-fix.md).
  • The sensor coverage: shtuk run testing coverage [--serious] prints, for each live risk, its tests, indicators and the last measurement.

Where the boundary is

  • Product tests that prove requirements belong to the "Product" layer. Here are the tests that hold quality and risks; one record can do both through the requirements field.
  • Acceptance under a contract is the acceptance criteria of the "Deal" layer; an indicator under the contract refers to them (norm QLT-R04 of the quality package). There is no separate acceptance package.
  • Bugs are the bugs package; a defect the tester cannot fix alone goes there.

Which lenses are needed

The package brings no lenses. Needed: a coverage matrix "risk × test × indicator" with the last measurement; a gallery of runs by level with screenshots; a board of tests by state.

Norms 6

"Blocks": the enforcer stops a violation. "Observes": it only notes it. Level MUST means required; SHOULD means yes by default.

Actions 5

NameWhat it doesFileWhen
placementAdd the QualityTest kind to the "Where things live" placement mapactions/place.ts
after install after update
risk-coveredA serious risk is covered by a test or a decision
norm QTS-R01
checks/t01_risk_covered.ts
check
test-pathA written test has a path or a reason
norm QTS-R02
checks/t02_test_path.ts
check
run-recordA run is recorded in full
norm QTS-R03
checks/t03_run_record.ts
check
coverageReport on how risks are covered by tests and indicators (--serious: only serious ones)checks/coverage.ts
shtuk run

shtuk check runs the checks; shtuk run testing <name> runs any action. "After install" actions run by themselves only if the package comes from a trusted source.

Pages 14

They go into the project at these paths.

Package files 9

They go into .shtukbase/packages/testing/; actions run from there.