Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Practical Guide to Testing Go Services

Conf42 via YouTube

Overview

Build a Learning Habit
Download Class Central's free printable study calendar
Download for Free
Learn comprehensive testing strategies for Go services through a practical 27-minute conference talk that demonstrates layered testing approaches using real-world examples. Explore the fundamental concepts of testing pyramids versus testing trophies and understand how to apply principled layered testing methodologies specifically for Go applications. Follow along with a detailed demo application that illustrates testing at multiple levels of your service architecture. Master repository layer testing techniques using real databases, implement effective service layer testing with mocks, and develop robust HTTP layer testing for handlers and routers. Discover how to generate and interpret coverage reports while exploring additional testing tools that enhance your Go development workflow. Gain practical insights into building maintainable test suites that provide confidence in your Go services while following industry best practices for different testing layers.

Syllabus

00:00 Introduction and Speaker Background
00:45 Understanding Testing Concepts: Pyramid vs. Trophy
02:04 Principles of Layered Testing in Go Services
03:12 Demo Application Overview
04:41 Repository Layer Testing with Real Databases
12:30 Service Layer Testing with Mocks
17:38 HTTP Layer Testing: Handlers and Routers
24:06 Coverage Reports and Additional Tools
26:34 Conclusion and Key Takeaways

Taught by

Conf42

Reviews

Start your review of Practical Guide to Testing Go Services

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.