GopherCon 2017: Mitchell Hashimoto - Advanced Testing with Go

  Рет қаралды 48,867

Gopher Academy

Gopher Academy

Күн бұрын

Пікірлер: 17
@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.
@catallergiccat
@catallergiccat 5 жыл бұрын
Cannot agree with having testing purpose code such as "Test bool" in main code is a great idea. 30:45
@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".
@zhangjimmy6619
@zhangjimmy6619 5 жыл бұрын
Great! my testing code is bad to compare with this
@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"
@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
@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
@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 5 жыл бұрын
tells to the testing env that the function is an Helper and not a real test function.
GopherCon 2017: Edward Muller - Go Anti-Patterns
38:14
Gopher Academy
Рет қаралды 31 М.
NewStore TechTalk - Advanced Testing with Go by Mitchell Hashimoto
1:17:30
NewStore Tech Talks
Рет қаралды 35 М.
When u fight over the armrest
00:41
Adam W
Рет қаралды 30 МЛН
Long Nails 💅🏻 #shorts
00:50
Mr DegrEE
Рет қаралды 11 МЛН
小路飞还不知道他把路飞给擦没有了 #路飞#海贼王
00:32
路飞与唐舞桐
Рет қаралды 86 МЛН
A hands-on guide for proper Unit Testing in Go!
18:44
Flo Woelki
Рет қаралды 5 М.
GopherCon 2017: Kavya Joshi - Understanding Channels
21:45
Gopher Academy
Рет қаралды 117 М.
Stories behind building HashiCorp | Mitchell Hashimoto
1:17:01
Software Misadventures Podcast
Рет қаралды 1,5 М.
Go Testing By Example (GopherCon Australia 2023)
38:45
Russ Cox
Рет қаралды 14 М.
Build Your Own Distributed System Using Go - Philip O'Toole
42:32
Gopher Academy
Рет қаралды 9 М.
GopherCon UK 2019: Alan Braithwaite - Advanced Testing Techniques
28:02
The Only Unbreakable Law
53:25
Molly Rocket
Рет қаралды 338 М.
GopherCon 2018: Filippo Valsorda- Asynchronous Networking Patterns
43:22
When u fight over the armrest
00:41
Adam W
Рет қаралды 30 МЛН