Mercure.rocksSponsored by

Conformance Tests

We provide conformance tests to check if a hub is compliant with the Mercure specification. This test suite is based on Playwright.


  1. Clone the repository: git clone

  2. Go in the conformance tests directory: cd conformance-tests

  3. Install the dependencies: npm ci

  4. Install Playwright: npx playwright install --with-deps

  5. Run the test suite: npx playwright test


The test suite can be configured by setting environment variables:

  • BASE_URL: the URL of the hub to test

  • CUSTOM_ID: enable or disable tests related to custom IDs support

See Also