Go Testing By Example (GopherCon Australia 2023)

  Рет қаралды 14,265

Russ Cox

Russ Cox

Күн бұрын

Пікірлер: 15
@Anuragntnx
@Anuragntnx 6 ай бұрын
Thanks for re-recording and sharing, I really appreciate it.
@something4074
@something4074 4 ай бұрын
05:02 Tip #01: Make it easy to add new test cases. 06:05 Tip #02: Use test coverage to find untested code. 07:26 Tip #03: Coverage is no substitute for thought. 09:21 Tip #04: Write exhaustive tests. 11:39 Tip #05: Separate test cases from test logic. 12:01 Tip #06: Look for special cases. 13:30 Tip #07: If you didn’t add a test, you didn’t fix the bug. 15:26 Tip #08: Not everything fits in a table. 17:28 Tip #09: Test cases can be in testdata files. 17:57 Tip #10: Compare against other implementations. 19:46 Tip #11: Make test failures readable. 20:57 Tip #12: If the answer can change, write code to update them. 21:41 Tip #13: Use txtar for multi-file test cases. 24:56 Tip #14: Annotate existing formats to create testing mini-languages. 26:38 Tip #15: Write parsers and printers to simplify tests. 28:36 Tip #16: Code quality is limited by test quality. 30:14 Tip #17: Scripts make good tests. 30:53 Tip #18: Try rsc.io/script for your own script-based test cases. 32:00 Tip #19: Improve your tests over time. 33:14 Tip #20: Aim for continuous deployment.
@VictorBreder
@VictorBreder 11 ай бұрын
That's good food for thought! Thank you for re-recording and sharing
@nc0fr
@nc0fr 11 ай бұрын
Awesome presentation, your Script tool seems very useful. Thanks Russ!
@nickandrievsky5705
@nickandrievsky5705 10 ай бұрын
Thanks for sharing, great speech
@nicolasparada
@nicolasparada 11 ай бұрын
These were great tips. Thanks :)
@ytdlgandalf
@ytdlgandalf 10 ай бұрын
I kinda like *and* dislike the advise for the DSL. Sometimes an internal DSL is really nicer b/c of the IDE integration and completion. Then again, maybe a DSL as shown should be so KISS that its usage should be obvious.
@nimrodyonatanben-nes5864
@nimrodyonatanben-nes5864 10 ай бұрын
Nice presentation, thanks for that. I would add that following TDD is able to solve many of the issues you raised but I understand that it's not everyone cup of tea :)
@nitroflap
@nitroflap 11 ай бұрын
Great stuff! Though one thing I've noticed, syntax on 16:42 is missing "range"
@AlexanderYastrebov
@AlexanderYastrebov 11 ай бұрын
also at 17:24 it should be t.Errorf
@BrianVoelker
@BrianVoelker 11 ай бұрын
I like to write my tests with random data using Gofakeit
@shuangcui
@shuangcui 11 ай бұрын
great
@ash8128
@ash8128 11 ай бұрын
4:16 "If they want to make a change, ... they just *mail* the change." What do you mean by "mail" the change? Why are you mailing changes?
@enneff
@enneff 11 ай бұрын
Many code review systems send notifications by email, and so the act of sending someone a change for review is often referred to in this way.
@s000032001
@s000032001 11 ай бұрын
TIp #3 台灣有一句名言是「我吃過的鹽比你吃過的飯還多」這很適合用在這裡。年紀比較大、覆蓋率比較高,並不代表智慧或思考比較多。因此他是一句邏輯謬誤。
Go Changes (GopherCon 2023)
22:18
Russ Cox
Рет қаралды 9 М.
Twin Telepathy Challenge!
00:23
Stokes Twins
Рет қаралды 114 МЛН
How Much Tape To Stop A Lamborghini?
00:15
MrBeast
Рет қаралды 228 МЛН
GopherCon 2022: Katie Hockman - Fuzz Testing Made Easy
24:06
Gopher Academy
Рет қаралды 11 М.
Julia as a Statically Compiled Language
38:46
HEP Software Foundation
Рет қаралды 4,5 М.
Static Compilation of Julia with Jeff Bezanson
1:01:41
Julia Dispatch
Рет қаралды 1,5 М.
GopherCon Europe 2023:  Yarden Laifenfeld - Go Sync or Go Home -
28:43
GopherCon Europe
Рет қаралды 3,8 М.
01. Russ Cox - Go Testing By Example | GopherConAU 2023
43:57
GopherConAU
Рет қаралды 14 М.
Thoughts About Unit Testing | Prime Reacts
11:21
ThePrimeTime
Рет қаралды 234 М.
Why I'm learning Go
21:35
Web Dev Cody
Рет қаралды 69 М.
How To Test HTTP Handlers In Golang?!
14:28
Anthony GG
Рет қаралды 23 М.
Golang Error Handling Is Better Than You Think!
18:53
Anthony GG
Рет қаралды 28 М.
Twin Telepathy Challenge!
00:23
Stokes Twins
Рет қаралды 114 МЛН