Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ertrzyiks/pact-playground
https://github.com/ertrzyiks/pact-playground
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/ertrzyiks/pact-playground
- Owner: ertrzyiks
- License: mit
- Created: 2020-11-11T13:48:31.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-18T13:19:16.000Z (about 4 years ago)
- Last Synced: 2024-12-07T19:36:04.181Z (about 1 month ago)
- Language: JavaScript
- Size: 303 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pact playground
## Pact broker
Before other commands become available you need to start a broker.
```bash
docker-compose up
```## Running consumer tests
To run consumer tests and publish them to the local broker run
```bash
yarn consumer-pact
```![](./images/first_test.png)
![](./images/first_test_matrix.png)after than check the pacts for verification
```bash
yarn select
```returns no pacts.
## Verifying pact by URL
```
yarn verify:single [PACT URL]
```## Creating WIP branch
Modify the consumer test and create a feature branch:
```
TRAVIS_COMMIT=123 TRAVIS_BRANCH=feature-1 yarn consumer-pact
```## Other commands
| Command | Description |
| ---- | --- |
| `yarn workspace consumer run test` | Create consumer pact |
| `yarn workspace consumer run publish:pact` | Publish consumer pact |
| `yarn workspace provider run verify:pact` | Publish consumer pact |