https://github.com/znsio/specmatic-uuid-api
https://github.com/znsio/specmatic-uuid-api
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/znsio/specmatic-uuid-api
- Owner: znsio
- Created: 2025-02-06T12:28:26.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-03T02:37:04.000Z (over 1 year ago)
- Last Synced: 2025-04-24T01:17:50.981Z (about 1 year ago)
- Language: C#
- Size: 38.1 KB
- Stars: 0
- Watchers: 7
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Postgres in TestContainer example
## Starting the application independently
### Start Postgres
```shell
docker run --rm \
-e POSTGRES_DB=specmatic_uuid_db \
-e POSTGRES_USER=dotnet \
-e POSTGRES_PASSWORD=dotNet1234 \
-p 5432:5432 \
postgres:17
```
### Start the Service
```shell
dotnet run
```
## Running contract tests programmatically with test containers
```shell
dotnet clean
dotnet restore
dotnet build
dotnet test
```
The test report should appear in "specmatic-uuid-api-test/build/report/specmatic/index.html"
## Running the application, postgres and contract tests via Docker Compose
```shell
docker compose --profile test up --abort-on-container-exit
```