GildedRose-Refactoring-Kata/go/README.md
dreddick.home2@gmail.com afa3d43717 separate brie update
2020-11-05 16:31:48 +00:00

484 B

GO Starter

  • Run :
go run texttest_fixture.go gilded-rose.go
  • Run tests :
go test
  • Run tests and coverage :
go test -coverprofile=coverage.out

go tool cover -html=coverage.out
  • Create golden test file using textest (*nix):
go run texttest_fixture.go gilded-rose.go > golden_test.txt 
  • Testing changes against the golden test file (*nix):
diff <(go run texttest_fixture.go gilded-rose.go) golden_test.txt