Тестируем код в #Go (часть 2)
Разбираем TestMain функцию в Go, правильно распоряжаемся данными, пишем тесты для веб-сервисов. В качестве бонуса статья содержит полезные лайфхаки.👇
https://www.ardanlabs.com/blog/2019/10/integration-testing-in-go-set-up-and-writing-tests.html
Разбираем TestMain функцию в Go, правильно распоряжаемся данными, пишем тесты для веб-сервисов. В качестве бонуса статья содержит полезные лайфхаки.👇
https://www.ardanlabs.com/blog/2019/10/integration-testing-in-go-set-up-and-writing-tests.html
Ardan Labs
Integration Testing in Go: Part II - Set-up and Writing Tests
Integration tests give insights to the end-to-end operation of web services. In part 2 of this 2 part series over integration testing in Go we explore how to configure and manage external systems before and during testing as well as the actual act of writing…