## Summary
- Adds `scripts/rsw/internal/wiki/integration_test.go` with integration tests hitting the live OSRS and RS3 wiki APIs
- Tests cover search results, page wikitext content, section listing, and specific section fetching for both games
- Tests are resilient to formatting changes — all assertions use keyword/substring matching, not exact string equality
## Test coverage
**Search tests (OSRS & RS3):**
- Dragon scimitar, Abyssal whip, Monkey Madness (OSRS)
- Dragon bones, Plague's End, Blue partyhat, Prayer training (RS3)
- Mining training search results
- Snippet keyword presence
**Page content tests:**
- Key info keywords present in wikitext (e.g. "slayer" for Abyssal whip, "prayer" for Dragon bones)
- Quest pages contain "quest", relevant thematic keywords, and "requirements"
**Section tests:**
- Pages have non-empty section lists
- Section names contain expected keywords
- Specific sections fetchable by index (using `GetPageSection`)
- Bones/altars section in Prayer training (RS3), Slayer masters section (RS3)
- Mining training first section contains mining/xp keywords
**Unit tests (no network):**
- `FindSectionIndex` found, not found, and empty slice cases
Closes #1
Triggers on pull_request events only (not on pushes to main)
Sets up Go using the go.mod in scripts/rsw/
Runs go test ./internal/wiki/... from the scripts/rsw working directory
**Claude finished @sam's task** —— [View job](http://100.100.131.50:3000/sam/claude-plugin-runescape/actions/runs/7)
---
### Tasks
- [x] Gather context and understand request
- [x] Check existing CI workflows
- [x] Create Gitea CI workflow for integration tests
- [x] Commit and push changes
Created `.gitea/workflows/test.yml` which:
- Triggers on `pull_request` events only (not on pushes to main)
- Sets up Go using the `go.mod` in `scripts/rsw/`
- Runs `go test ./internal/wiki/...` from the `scripts/rsw` working directory
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
scripts/rsw/internal/wiki/integration_test.gowith integration tests hitting the live OSRS and RS3 wiki APIsTest coverage
Search tests (OSRS & RS3):
Page content tests:
Section tests:
GetPageSection)Unit tests (no network):
FindSectionIndexfound, not found, and empty slice casesCloses #1
@claude Add a gitea CI action that automatically runs these tests. It should run on pull requests. It should not run on pushes to main.
Claude finished @sam's task —— View job
Tasks
Created
.gitea/workflows/test.ymlwhich:pull_requestevents only (not on pushes to main)go.modinscripts/rsw/go test ./internal/wiki/...from thescripts/rswworking directory