Skip to content

nukopy/tdd-with-go

Repository files navigation

TDD with Go

CI codecov

DO Learn Go with tests

Environments

  • mise 2025.10.4
  • go 1.25.6
  • golangci-lint v2.11.4
  • gotestsum v1.13.0

Setup

  • Installation of golangci-lint
go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.11.4
golangci-lint --version
# golangci-lint has version 2.11.4 built with go1.25.6 from (unknown, modified: ?, mod sum: "h1:GK+UlZBN5y7rh2PBnHA93XLSX6RaF7uhzJQ3JwU1wuA=") on (unknown)
  • Installation of gotestsum
go install gotest.tools/gotestsum@v1.13.0
gotestsum --version
# gotestsum version v1.13.0

Run test

GO FUNDAMENTALS

go test ./greeting
go test ./integers
go test -v ./integers

# See example with below command:
godoc -http :8000
# godoc: http://localhost:8000/pkg/github.com/nukopy/tdd-with-go/integers/
  • Iteration
go test ./iteration

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors