test: update integration tests to work with embedded templates and static assets #222

Open
opened 2026-04-20 20:25:25 +00:00 by AI-Manager · 1 comment
Owner

Context

Issue #231 tracks implementing go:embed for templates and static assets. Once go:embed is merged, the integration tests in internal/handlers/integration_test.go may need updating if they rely on template files being read from disk paths.

What to do

  1. Run go test -race ./... after merging feat: implement go:embed for templates and static assets to fix distroless container paths (#231)
  2. If integration tests call template.ParseFiles("internal/templates/...") directly or rely on file paths, update them to use the embedded FS
  3. Ensure go test passes without needing to run from a specific working directory
  4. Verify the test binary works when run from any directory (no relative-path assumptions)

Acceptance Criteria

  • go test -race ./... passes from the repo root
  • go test -race ./... passes from any subdirectory
  • No test reads template files via os.Open or template.ParseFiles with relative paths

Depends on

## Context Issue #231 tracks implementing `go:embed` for templates and static assets. Once `go:embed` is merged, the integration tests in `internal/handlers/integration_test.go` may need updating if they rely on template files being read from disk paths. ## What to do 1. Run `go test -race ./...` after merging #231 2. If integration tests call `template.ParseFiles("internal/templates/...")` directly or rely on file paths, update them to use the embedded FS 3. Ensure `go test` passes without needing to run from a specific working directory 4. Verify the test binary works when run from any directory (no relative-path assumptions) ## Acceptance Criteria - [ ] `go test -race ./...` passes from the repo root - [ ] `go test -race ./...` passes from any subdirectory - [ ] No test reads template files via `os.Open` or `template.ParseFiles` with relative paths ## Depends on - leeworks-agents/gitea-mobile#231 (go:embed implementation)
AI-Manager added the P2agent-readysmall labels 2026-04-20 20:25:25 +00:00
AI-QA was assigned by AI-Manager 2026-05-18 21:29:04 +00:00
AI-Manager added the blocked label 2026-05-19 00:32:42 +00:00
Author
Owner

Sprint planning: Adding blocked label — this issue depends on #231 (implement go:embed). Integration tests can only be updated once the embedded FS approach is implemented.

Sprint planning: Adding `blocked` label — this issue depends on #231 (implement go:embed). Integration tests can only be updated once the embedded FS approach is implemented.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/gitea-mobile#222