1
0
mirror of https://github.com/xorcare/testing-go-code-with-postgres.git synced 2025-06-30 23:23:40 +02:00

Add 'Quick start' to README.md

This commit is contained in:
Vasiliy Vasilyuk
2023-11-14 21:13:13 +03:00
parent 942c43a636
commit c41bbafb59

View File

@ -10,6 +10,16 @@ The example suggests a solution to the problem of cleaning the database after
running tests and the problem of running tests in parallel. It also shows how running tests and the problem of running tests in parallel. It also shows how
to organize integration testing of Go code with Postgres. to organize integration testing of Go code with Postgres.
## Quick start
For quickly try integration tests locally, use following commands.
```shell
git clone https://github.com/xorcare/testing-go-code-with-postgres
cd testing-go-code-with-postgres
make test-env-up test
```
## What's interesting here? ## What's interesting here?
- Example - Example
@ -40,10 +50,6 @@ TestUserRepository-CreateUser-Successfully-created-a-UspTBGNltW
TestUserRepository-ReadUser-Get-an-error-if-the-user-doRqS1GvYh TestUserRepository-ReadUser-Get-an-error-if-the-user-doRqS1GvYh
``` ```
## How to use
Run `make test-env-up test` and then everything will happen by itself.
## Disclaimer ## Disclaimer
**This example is not an example of software architecture!** **This example is not an example of software architecture!**