An Introduction to Testing in Go

preview_player
Показать описание

● SUBSCRIBE to see more of my Videos & hit that LIKE button to support the channel!

Hi Everyone, in this tutorial we look at how you can get started testing your go based programs using the go test command.

‎--------------

🎥 Recording Setup

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

Very crisp, clear and to the point example. Perfect starter for testing in go. Thanks.

sunitijuyal
Автор

Good I found this chill channel! Great content

codelinx
Автор

Very crisp, clear and to the point example.

startup
Автор

Yes, easy to understand when you keep it nice and simple! Nice!

be
Автор

My first testing in GO. Awesome video. Thanks!

Nephrotreego
Автор

Excellent video with clear explanations. You're a lifesaver man

ninjaboss
Автор

Hey great video 👍 I cant wait for the next part about mocking.

steffenn
Автор

Great video. Just enough info so that you get something valuable but aren't overwhelmed. Thanks

rmacster
Автор

Amazing quick to start tutorial, thank you!

dzmitrykamarou
Автор

j>go test
go: cannot find main module; see 'go help modules'

rehmanchughtai
Автор

I should have learned this instead of joining the Gambino family.

johngotti
Автор

Kind of funny given that this is about testing... If he had added a failed test to TestTableCalculate he would have found out that:
t.Error("Test Failed: {} inputted, {} expected, recieved: {}", test.input, test.expected, output)
doesn't work as he expected. Not even sure what language he though he was coding in, Python maybe? I think he meant:
t.Errorf("Test Failed: %v inputted, %v expected, received: %v", test.input, test.expected, output)

I'd give our presenter more crap about it but I do the same thing all the time... <sigh> I do wish you'd gone a bit farther into testing techniques in Go.

carlfranz