github.com/angryronald/go-kit@v0.0.0-20240505173814-ff2bd9c79dbf/README.md (about)

     1  # go-kit
     2  go-kit is a library for a commonly used utility functions in Go
     3  
     4  ## Run the Tests
     5  
     6  - To run the tests, please make sure docker engine already running, before execute this command
     7  `go test -v -timeout 0 $(go list ./... | grep -v '/nosql/' | grep -v '/publisher/' | grep -v '/http/' | grep -v '/sql/' | grep -v '/test/')`
     8  
     9  - If all of these dependencies (kafka, cassandra, mockserver, and rabbitmq) already running (can check on the /test/ dir for the docker-compose or docker-command), then you can execute the test with this command below
    10  `go test -v -timeout 0 ./...`
    11  
    12  ## Notes
    13  - Due to memory leaks issue on dockertest with cassandra, the test have to be done manually.
    14  - Due to issue on creating and spin-up some container with dockertest (kafka, cassandra, mockserver, and rabbitmq), these containers needs to be spin-up manually 
    15  - Due to race condition issue with generic repo integration test, please run manually for now (need to put this in TODO)