-
-
Notifications
You must be signed in to change notification settings - Fork 284
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Conformance Tests | ||
|
||
We provide conformance tests to check if a hub is compliant with the Mercure specification. | ||
This test suite is based on [Playwright](https://playwright.dev/). | ||
|
||
## Install | ||
|
||
1. Clone the repository: `git clone https://github.com/dunglas/mercure` | ||
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` | ||
|
||
## Configuration | ||
|
||
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 | ||
|
||
* [The load test](../hub/load-test.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters