Run unit and integration tests
masterTo run the project's tests, you can use make test for unit tests. For integration tests, you must first start a test database using Docker and then run the test command with the appropriate DATA_SOURCE_NAME and GOOPTS environment variables.
# Run the unit tests
make test
# Start the test database with docker
docker run -p 5432:5432 -e POSTGRES_DB=circle_test -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=test -d postgres
# Run the integration tests
DATA_SOURCE_NAME='postgresql://postgres:test@localhost:5432/circle_test?sslmode=disable' GOOPTS='-v -tags integration' make test