Skip to content

feat(integration): add local harness for live contract tests#4

Merged
Malomalsky merged 1 commit into
mainfrom
feat-integration-local-harness
Feb 27, 2026
Merged

feat(integration): add local harness for live contract tests#4
Malomalsky merged 1 commit into
mainfrom
feat-integration-local-harness

Conversation

@Malomalsky
Copy link
Copy Markdown
Owner

@Malomalsky Malomalsky commented Feb 27, 2026

What Changed

  • Added scripts/integration-local.sh.
    • Starts local simplex-chat (if SIMPLEX_WS_URL is not provided)
    • Waits until websocket API is reachable
    • Runs integration tests with -tags=integration
    • Cleans up spawned process on exit
  • Updated docs to include harness usage:
    • README.md
    • CONTRIBUTING.md
    • integration/README.md

Why

Running live integration tests required manual setup. This harness makes local contract test runs reproducible and faster for contributors.

How To Use

./scripts/integration-local.sh

Use existing websocket endpoint:

SIMPLEX_WS_URL=ws://localhost:5225 ./scripts/integration-local.sh

Validation

  • bash -n scripts/integration-local.sh
  • go test ./...
  • go vet ./...
  • ./scripts/check-compat.sh

@Malomalsky Malomalsky merged commit 24d48ab into main Feb 27, 2026
3 checks passed
@Malomalsky Malomalsky deleted the feat-integration-local-harness branch February 27, 2026 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant