Testing

Use when writing or debugging tests for memory-service. Covers Cucumber BDD patterns and failure reporting.

tomevault-io Updated

File contents

Testing Guidelines

Prefer Cucumber for API Testing

For REST and gRPC tests, use the Go BDD suite under internal/bdd/testdata/features*/ instead of unit tests with mocks.

Reserve unit tests with mocks for internal implementation details and infrastructure testing.

Cucumber Failure Reporting

When tests fail:

go test ./internal/bdd -run TestFeatures... > test.log 2>&1
rg -n "FAIL|ERROR|panic|--- FAIL:" test.log

Prefer searching the redirected log for the failing scenario and stack trace context.


Converted and distributed by TomeVault — claim your Tome and manage your conversions.

tomevault-io/skills-registry/tree/main/chirino--memory-service--testing commit 821308b4d0

Frequently asked questions

npx skillmds@latest add tomevault-io/testing-36