You've already forked testing-go-code-with-postgres
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:
14
README.md
14
README.md
@ -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!**
|
||||||
|
Reference in New Issue
Block a user