1
0
mirror of https://github.com/xorcare/testing-go-code-with-postgres.git synced 2024-12-27 16:33:05 +02:00
testing-go-code-with-postgres/README.md
Vasiliy Vasilyuk 42815eab15
Add GitLab CI and mirroring to GitLab
Added an example .gitlab-ci.yml, to make a sample more informative.

Also added mirroring to gitlab to simplify repository development and
gitlab ci validation.
2023-07-11 22:53:23 +03:00

1.3 KiB

Example of testing Go code with Postgres

Go workflow status badge codecov Gitlab CI Pipeline Gitlab CI Coverage Go Report Card

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 to organize integration testing of Go code with Postgres.

How to use

Run make test-env-up test and then everything will happen by itself.

Disclaimer

This example is not an example of software architecture!