# Integration Testing HTTP

> Run and extend the end-to-end HTTP integration tests (SQLite in-memory) for mjr.wtf, covering auth, create/list/delete, redirects, and analytics. Use when changing handlers, middleware, or API contracts.

- Skill: `aibot88/integration-testing-http` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add aibot88/integration-testing-http`
- Raw SKILL.md: https://api.skillmd.com/api/skills/aibot88/integration-testing-http/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Data & Analytics
- License: MIT
- Author: aibot88 (https://skillmd.com/u/aibot88)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/aibot88/integration-testing-http

---


## Tooling assumptions

- Use a terminal runner with bash and git available.
- Prefer `make` targets when available; fall back to direct CLI commands when needed.

## Run

```bash
make test-integration
```

Targeted runs:

```bash
go test -v -run TestE2E ./internal/infrastructure/http/server/
go test -v -run TestAPI ./internal/infrastructure/http/server/
```

## What to update when adding/changing endpoints

- Add/adjust OpenAPI (`openapi.yaml`) and validate it.
- Update integration tests to assert:
  - status codes
  - auth requirements (missing/invalid token)
  - response JSON schema fields
  - redirect behavior and analytics side effects

## Reference

See `docs-site/src/content/docs/operations/integration-testing.md` for the current suite structure and scenarios.

