mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-15 22:41:30 +00:00
484 B
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