The Sample of Crypto Exchange
$ cp .env.example .env # Only at the beginning.
$ make up- Authentication(Firebase)
- REST API
- DB Transaction
- Auto Migration
- Unit Test
- Integration Test(Not all APIs, but some)
TEST_PATH is paths under /tests/unit
example
$ make unit_test TEST_PATH=/lib/common_test.goTEST_PATH is paths under /tests/integration
It is necessary to launch docker compose for testing in advance.
example
$ make up_test # launch docker compose for testing
$ make integration_test TEST_PATH=/controllers/trade_controller_test.go