Golang Fundamental Testing

Example write basic fundamental testing in Golang

Implementation Case

  • 01_testing write traditional testing
  • 02_testing write traditional testing using testify
  • 03_testing write traditional API testing using testify

Command

  • Testing

$ make test || go test -v ./...
  • Coverage Testing

$ make coverage || go test -cover -v ./... || go test -coverprofile=coverage.out ./... || go tool cover -func=coverage.out

Testing And Coverage Testing Result

GitHub

https://github.com/restuwahyu13/golang-testing-fundamental