Unit testing in golang - a beginners + advanced-ish tutorial

preview_player
Показать описание
You want to learn how to write unit tests in golang? In this tutorial I am explaining all the basics you need to know about how to write your very first tests in go. I also get into some advanced-ish techniques like parametrized testing and using testify.

Playlist:

testify:

❤️ SUPPORT MY CHANNEL ❤️
--------------------------------------------------
A little support goes a long way!

📖 5 Books to skyrocket your career 📖
----------------------------------------------------

🎒 THE GEAR I USE 🎒
--------------------------------------------------

💻 Technical Gear

🎒 Digital Nomad Essential Gear

📷 YouTube Gear

👋 SOCIAL MEDIA 👋
----------------------------------------------------

@the_langhorst - INSTAGRAM
@the_langhorst - TWITTER
@the_langhorst - TIKTOK

Music used:

Karl Casey @ White Bat Audio

Track: Sports Dubstep [Vlog Music] by MOKKA / Love in Space
Music provided by "MokkaMusic" channel and

‼️ Disclaimers

The links mentioned in this description may contain affiliate links. I may receive a commission for any purchases made through these links, but there won't be any extra cost for you. I am grateful for your support, as it enables me to keep providing you with valuable content for free.

#programming #coding #golang
Рекомендации по теме
Комментарии
Автор

maan, this was the most complete video about golang unit tests I've ever seen on youtube, thanks)))

Programscape
Автор

This was probably the best video on go lang unit testing I've seen so far. I come from python unit testing with mock, and was able to understand everything. Good job!

JonDisnard
Автор

Very engaging way of teaching. Good job!!

savingday
Автор

I noticed that the testify library runs the tests in less time 👀

Nica tutorial 👌

dniells
Автор

nice one, now i can do my opensource work !

kushalshukla
Автор

I'd love a video for testify! seriously, nobody does any videos about unit testing. Its the same with nodejs, no one does anything with TSOA for nodejs unit testing.

delduked
Автор

excellent, i was able to solve some queries about golang testing :D

dexslender
Автор

thank you, good one and to the point video :)

a_maxed_out_handle_of__chars
Автор

Very Helpful thank you. Will you be exploring mocking?

Kai
Автор

I am getting the error "package command-line-arguments is not a main package" when using a package that has the same name as the filename (calculator in this case). How are you able to have a package calculator running in the code? Please guide.

AyushSisodia-mi
Автор

Sir, I am currently learning c++, java and python is it enough or should i learn 1 more. (Not web development)

rasikamanori
join shbcf.ru