AI-powered learning
Save this course
Learning Test-Driven Development with Go
Gain insights into TDD with Go. Learn Go fundamentals, write test cases, explore TDD katas, and build a TODO app to master reliable application development practices.
4.9
39 Lessons
10h
Join 2.9 million developers at
Join 2.9 million developers at
LEARNING OBJECTIVES
- Familiarity with core components of Go, including structs, interfaces, functions, and methods
- Hands-on experience writing unit tests using Go
- An understanding of TDD and its application in software development
- The ability to write software using TDD with Go
Learning Roadmap
1.
Introduction
Introduction
Gain a foundational understanding of TDD with Go's principles, practices, and advantages.
2.
Go: Fundamentals
Go: Fundamentals
Walk through Go's basics, fmt package, standard library, I/O operations, and error handling.
3.
Tests & TDD
Tests & TDD
5 Lessons
5 Lessons
Break apart tests, TDD, clean tests, code smells, and magic numbers for efficient development.
4.
Go & Tests
Go & Tests
14 Lessons
14 Lessons
Grasp the fundamentals of writing tests, advanced testing features, and building robust web APIs in Go.
5.
TDD Katas
TDD Katas
11 Lessons
11 Lessons
Solve problems in FizzBuzz and PassValidator katas using the Red-Green-Refactor TDD approach.
Certificate of Completion
Showcase your accomplishment by sharing your certificate of completion.
Complete more lessons to unlock your certificate
Developed by MAANG Engineers
ABOUT THIS COURSE
Test-driven development (TDD) is a software design technique based on tests that promotes an iterative way of writing software. This course will teach you to use TDD using Go—one of the most popular languages.
In this course, you will first learn about the fundamentals of Go, including packages, standard library, and error handling. Then, you will go through a comprehensive guide on writing test cases using Go, including subtests, table-driven tests, skipping, benchmarking, fuzzing, dependency injection, and mocking in unit tests. Next, you will look at multiple TDD katas and learn about the best practices for making most of the TDD approach. Finally, you will build a TODO application by following the test-driven development approach. This application will be a REST API that exposes actions getting TODOs.
After completing this course, you will have the skills needed to build reliable applications using the test-driven development approach.
ABOUT THE AUTHOR
Ivan Pesenti
Software developer - Speaker - Trainer - Blogger - Geek
Trusted by 2.9 million developers working at companies
A
Anthony Walker
@_webarchitect_
E
Evan Dunbar
ML Engineer
S
Software Developer
Carlos Matias La Borde
S
Souvik Kundu
Front-end Developer
V
Vinay Krishnaiah
Software Developer
Built for 10x Developers
No Passive Learning
Learn by building with project-based lessons and in-browser code editor


Personalized Roadmaps
The platform adapts to your strengths & skills gaps as you go


Future-proof Your Career
Get hands-on with in-demand skills


AI Code Mentor
Write better code with AI feedback, smart debugging, and "Ask AI"




MAANG+ Interview Prep
AI Mock Interviews simulate every technical loop at top companies


Free Resources