Commit b487665
feat(tests): implement comprehensive integration test infrastructure improvements
- Add integration build tags (//go:build integration) to separate integration tests from unit tests
- Create OpenAPI contract validation framework with comprehensive schema validation
- Implement detailed HTTP response validation with fluent interface
- Enhance CI pipeline to properly run integration tests with database service
- Update Makefile with separate targets for unit vs integration test execution
- Add comprehensive API documentation validation suite with contract tests
- Implement test coverage separation for unit and integration test reporting
- Create security headers validation and common HTTP response validation
- Add OpenAPI specification compliance testing for all major endpoints
The integration test infrastructure now provides:
- Complete separation between unit and integration tests using build tags
- Comprehensive OpenAPI contract validation ensuring API consistency
- Robust CI pipeline with proper database connectivity for integration tests
- Enhanced test coverage reporting with separate unit/integration metrics
- Security-focused API validation with proper header and response validation
This completes the API documentation and testing infrastructure for issue #6,
providing enterprise-grade testing capabilities with comprehensive validation.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent fb46d66 commit b487665
File tree
11 files changed
+1050
-6
lines changed- .github/workflows
- internal
- api
- integration
- database
- testutil
11 files changed
+1050
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
| 231 | + | |
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
31 | 35 | | |
32 | 36 | | |
33 | | - | |
| 37 | + | |
34 | 38 | | |
35 | | - | |
| 39 | + | |
36 | 40 | | |
37 | | - | |
38 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
39 | 45 | | |
40 | 46 | | |
41 | 47 | | |
42 | 48 | | |
43 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
44 | 66 | | |
45 | 67 | | |
46 | 68 | | |
| |||
0 commit comments