Skip to content

openspec-tdd 0.7.0

Choose a tag to compare

@gplanchat gplanchat released this 16 Nov 07:39
· 28 commits to main since this release

Test levels for slices, and a fix of the setup check of the flow plugin.

  • Test level of a slice. A language whose entry in .awf/languages.yaml declares levels (one path pattern per level: unit, functional, integration) has each slice carry its level next to its language tag, [php] [unit].
    • The new levels gate of flow-propose and flow-update fails on a slice without a level.
    • RED fails with code 14 when a test file of the slice is at another level.
    • A language without levels sees no change.
  • Level rules. The RED tester and the PHP, TS and Go profiles say which level proves which kind of scenario: the lowest that proves the behavior. design.md ends with a test strategy that gives each scenario its level.
  • Go levels. _functional_test.go, and _integration_test.go behind the integration build tag, which the new gointegration tool of the example registry runs.
  • Pyramid. apply-change.json counts the test files per level, in the project and in the change (pyramid); openspec-tasks.sh pyramid <change> prints the same.
  • /flow:setup fix. zpm version writes to stderr: the check read an empty version and reported zpm as too old.

Requires awf 0.11.9 or later.

awf workflow install gplanchat/awf-workflow-openspec-tdd@0.7.0