Intro

Unit Test

make test-unit TARGET=emailer
go test -v -short
go test -v -short ./service/emailer/service

Integration Test

Run only Integration Tests: Useful for smoke testing canaries in production.

make test-inte TARGET=emailer
make test-inte TARGET=emailer TIMEOUT=300ms
go test -v -run Integration ./service/emailer/service

UAT Test

we can use one of the option below. They are various options for manual testing

BloomRPC UI Client

  1. add ~/go/src to import paths, also add any other paths to shared proto files.

  2. click (+) and import proto file you want to test.

  3. add optional metadata in the JSON format in the Metadata Section. e.g., Authorization Headers etc

gRPC CLI Client

Micro CLI

test with gRPC clients such as Micro CLI, BloomRPC or grpcurl

For k8s: SSH to gateway container and run micro cli....

Micro Web UI

create new user from Micro Web UI and see if an email is send

Micro API Gateway

Start API Gateway

Start API Gateway and run REST Client testsarrow-up-right

E2E Testing

Assume, you are running all microservices on local k8s clusterarrow-up-right with one of the profiles(e2e, production)

E2E tests with tools

E2E tests via code

Fuzzing

TODO

fuzz testing with fuzzitarrow-up-right

Last updated