GildedRose-Refactoring-Kata/go
dreddick.home2@gmail.com 6a651a5f7a add min function
2020-11-05 16:41:13 +00:00
..
gilded-rose_test.go separate brie update 2020-11-05 16:31:48 +00:00
gilded-rose.go add min function 2020-11-05 16:41:13 +00:00
README.md separate brie update 2020-11-05 16:31:48 +00:00
texttest_fixture.go Rename Go's texttest fixture, fix type in name. 2018-12-03 21:18:33 +01:00

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