Skip to content

test: Add WireMock Integration Testing Framework for Web SDK#1139

Draft
jaissica12 wants to merge 3 commits intodevelopmentfrom
test/SDKE-533-Implement-web-test-app
Draft

test: Add WireMock Integration Testing Framework for Web SDK#1139
jaissica12 wants to merge 3 commits intodevelopmentfrom
test/SDKE-533-Implement-web-test-app

Conversation

@jaissica12
Copy link
Contributor

Background

  • The iOS mParticle SDK has integration testing framework that use WireMock to capture and verify outbound network requests. This PR brings the same capability to the Web SDK, enabling consistent cross-platform validation of SDK behavior.

What Has Changed

  • IntegrationTests/ - Complete integration testing framework
    • common.sh - Shared shell utilities (build, Docker, HTTP server, Playwright)
    • run_wiremock_recorder.sh - Recording mode script
    • run_clean_integration_tests.sh - Verification mode script
    • run-browser-test.js - Playwright headless browser runner
    • sanitize_mapping.py - API key sanitization for mappings
    • transform_mapping_body.py - Dynamic field replacement in request bodies
    • test-app/ - Minimal web application with 5 test cases
    • wiremock-recordings/ - Baseline stub mappings and response bodies
  • .gitignore - Added patterns for test artifacts and temp files

Screenshots/Video

  • {Include any screenshots or video demonstrating the new feature or fix, if applicable}

Checklist

  • I have performed a self-review of my own code.
  • I have made corresponding changes to the documentation.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have tested this locally.

Additional Notes

  • Requires Docker Desktop to be running

Reference Issue (For employees only. Ignore if you are an outside contributor)

@sonarqubecloud
Copy link

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

Comments