Skip to content

Conversation

@timothedelion
Copy link
Collaborator

@timothedelion timothedelion commented Dec 8, 2025

  • Add VCR cassette testing for realistic API testing without live calls in CI
  • Create test suite for GitGuardianClient read-only methods (incidents, sources, honeytokens,
    occurrences, custom tags, tokens)
  • Add secret redaction to prevent sensitive data in committed cassettes
  • Add Makefile with test, test-vcr, test-unit shortcuts
  • Split CI into separate unit and VCR test jobs
  • I've not added the GITGUARDIAN_API_KEY on GitHub secrets manager and I assume the cassettes will all be recorded (and periodically re-recorded) from local.

Next steps :

  • Also test "Write" API actions ?
  • Use VCR instead of mocking also for tools tests (not only client tests)

@timothedelion timothedelion self-assigned this Dec 8, 2025
@linear
Copy link

linear bot commented Dec 8, 2025

@timothedelion timothedelion force-pushed the tdelion/APPAI-157/better-testing-strategy branch from 35d9503 to ebffe01 Compare December 8, 2025 10:40
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.

2 participants