Location: /Users/lee/Dev/leefowlercu/go-contextforge/contextforge/*_test.go
- Use
httptest.NewServerfor API mocking. - Prefer table-driven tests.
- Cover happy paths, edge cases, and error behavior.
- Reuse existing test helper patterns in current test files.
Location: /Users/lee/Dev/leefowlercu/go-contextforge/test/integration/*_integration_test.go
- Must include build tag:
//go:build integration. - Run only when
INTEGRATION_TESTS=true. - Defaults:
CONTEXTFORGE_ADDR=http://localhost:8000/CONTEXTFORGE_ADMIN_EMAIL=admin@test.localCONTEXTFORGE_ADMIN_PASSWORD=testpassword123
- Use cleanup hooks (
t.Cleanup) for created resources.
Some integration tests are intentionally skipped due to confirmed upstream API issues.
See bug documents in:
/Users/lee/Dev/leefowlercu/go-contextforge/docs/upstream-bugs/
Known skipped issue IDs:
CONTEXTFORGE-001CONTEXTFORGE-002CONTEXTFORGE-005CONTEXTFORGE-008CONTEXTFORGE-010
Resolved issue IDs:
CONTEXTFORGE-003CONTEXTFORGE-004CONTEXTFORGE-007CONTEXTFORGE-009
Informational:
CONTEXTFORGE-006(validation error behavior is by design)
- Confirm the upstream bug is fixed in the tested ContextForge version.
- Remove the corresponding
t.Skip()call. - Re-run the test and verify pass.
- Update the related bug markdown document with resolution details.