Conformance Tests
We provide conformance tests to check if a hub is compliant with the Mercure specification. This test suite is based on Playwright.
Install
Clone the repository:
git clone https://github.com/dunglas/mercureGo in the conformance tests directory:
cd conformance-testsInstall the dependencies:
npm ciInstall Playwright:
npx playwright install --with-depsRun the test suite:
npx playwright test
Configuration
The test suite can be configured by setting environment variables:
BASE_URL: the URL of the hub to testCUSTOM_ID: enable or disable tests related to custom IDs support