Advanced Testing with Go - Mitchell Hashimoto

  Рет қаралды 49,063

Gopher Academy

Gopher Academy

Күн бұрын

Пікірлер: 17
@catallergiccat
@catallergiccat 5 жыл бұрын
Cannot agree with having testing purpose code such as "Test bool" in main code is a great idea. 30:45
@catallergiccat
@catallergiccat 5 жыл бұрын
The way how I prevent 200 lines for preparing test fixture is using test fixture builder. The builder builds test fixture with default values, however can specify case-by-case fixture with "withX" functions, which saves a lot of lines of repeatedly code but still get to the point of the fixture.
@silentassassin8959
@silentassassin8959 5 жыл бұрын
Awesome video! More people need to watch this
@NovikArthur
@NovikArthur 3 жыл бұрын
7:50 an error in example. Should be "tc.Expected" instead of "expected".
@nicocesar
@nicocesar 4 жыл бұрын
14:12 he mentions a good way to show Diff(actual, expected) ... but I can't understand what library he is referring to. Anyone has a clue?
@tracefindertracefinder7215
@tracefindertracefinder7215 4 жыл бұрын
Perhaps, it's about pkg.go.dev/github.com/google/go-cmp/cmp#Diff
@pulsarglider
@pulsarglider Жыл бұрын
go-cmp package
@mbigras
@mbigras 5 жыл бұрын
At kzbin.info/www/bejne/bpm0eGqHoch_eM0 the plus sign + is the repetition operator, putting it in quotes solves the probably go test -v -run TestAdd/"\+1"
@frederikcreemers7751
@frederikcreemers7751 7 жыл бұрын
At 16:00, What does t.Helper() do? I don't see it in the testing docs.
@ashishacharya4001
@ashishacharya4001 7 жыл бұрын
Helper() is a new method added in 1.9. tip.golang.org/doc/go1.9#test-helper
@aclshumway
@aclshumway 7 жыл бұрын
It was added in 1.9 golang.org/pkg/testing/#T.Helper
@sashimi80
@sashimi80 6 жыл бұрын
tells to the testing env that the function is an Helper and not a real test function.
@aaronyu
@aaronyu 4 жыл бұрын
Does anyone know where can I get the slides? Cause I can not understand the content that quickly... Thanks a lot.
@ppang
@ppang 4 жыл бұрын
Use pause, period.
@techindia3602
@techindia3602 3 жыл бұрын
: speakerdeck.com/mitchellh/advanced-testing-with-go
@zhangjimmy6619
@zhangjimmy6619 5 жыл бұрын
Great! my testing code is bad to compare with this
Go Anti-Patterns - Edward Muller
38:14
Gopher Academy
Рет қаралды 31 М.
NewStore TechTalk - Advanced Testing with Go by Mitchell Hashimoto
1:17:30
NewStore Tech Talks
Рет қаралды 36 М.
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
A hands-on guide for proper Unit Testing in Go!
18:44
Flo Woelki
Рет қаралды 7 М.
Thoughts About Unit Testing | Prime Reacts
11:21
ThePrimeTime
Рет қаралды 237 М.
Go Testing By Example (GopherCon Australia 2023)
38:45
Russ Cox
Рет қаралды 14 М.
Understanding Channels - Kavya Joshi
21:45
Gopher Academy
Рет қаралды 118 М.
Go + Microservices = Go Kit [I] - Peter Bourgon, Go Kit
38:49
CNCF [Cloud Native Computing Foundation]
Рет қаралды 103 М.
GopherCon UK 2019: Alan Braithwaite - Advanced Testing Techniques
28:02
Google’s Quantum Chip: Did We Just Tap Into Parallel Universes?
9:34
Build Your Own Distributed System Using Go - Philip O'Toole
42:32
Gopher Academy
Рет қаралды 10 М.
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН