test: add integration tests for OSRS and RS3 wiki searches and page fetches #2
Reference in New Issue
Block a user
Delete Branch "claude/issue-1-write-unit-tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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