01. Russ Cox - Go Testing By Example | GopherConAU 2023

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

GopherConAU

GopherConAU

Күн бұрын

Пікірлер: 8
@efferington
@efferington Күн бұрын
Very amusing watching a talk about testing while battling the clickers' functionality :D
@erikkalkoken3494
@erikkalkoken3494 10 ай бұрын
Mostly very good advise on how to write good tests and a great talk well worth watching. I disagree in one point though. Putting lot of logic into test cases is a bad idea. It makes them harder to understand and more likely to be buggy themselves. Instead, test code should be as trivial as possible (using tables for test cases is fine). This also means that it is totally fine to have redundant code in your test cases.
@michaelmoser4537
@michaelmoser4537 9 ай бұрын
depends on type of test and number of test case. In case of an integration-test: if one is testing a scripting language with hundreds of test cases, then a table-driven test would be hard to maintain. In this case it is preferable to define a test case as the input file vs the expected output file. Now a table-driven test is ok for unit tests: a table-driven test is perfect for the binary search function example.
@SkeletonLau
@SkeletonLau 10 ай бұрын
where can i find the "uncover" program
@sinamobasheri
@sinamobasheri 4 ай бұрын
10:54 - Tip #4 Write exhaustive tests
@jackypaulcukjati3186
@jackypaulcukjati3186 10 ай бұрын
I would like to uncover uncover
@covle9180
@covle9180 10 ай бұрын
Russ is clearly way more experienced than I'll ever be, so I'm probably wrong. I don't like obscure logic in tests. As the logic of the test might as well just be wrong. I also don't like the idea of custom mini languages and tests that 'correct' tests. It just seems like there's so much room to introduce problems into your tests. I want my tests easy to understand at a glance. For me and for the other people on the team. If I have to figure out some obscure custom mini language to understand whether my code is bad or the test is bad, I'm not happy.
@DoubleJumpPunch
@DoubleJumpPunch 5 ай бұрын
Just write tests for your tests, EZ
Do you love Blackpink?🖤🩷
00:23
Karina
Рет қаралды 19 МЛН
ТЫ В ДЕТСТВЕ КОГДА ВЫПАЛ ЗУБ😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 4,6 МЛН
Кто круче, как думаешь?
00:44
МЯТНАЯ ФАНТА
Рет қаралды 6 МЛН
GopherCon 2022: Katie Hockman - Fuzz Testing Made Easy
24:06
Gopher Academy
Рет қаралды 11 М.
Go lang for network engineers
27:38
NANOG
Рет қаралды 1,7 М.
Thoughts About Unit Testing | Prime Reacts
11:21
ThePrimeTime
Рет қаралды 234 М.
Google I/O 2012 - Go Concurrency Patterns
51:27
Google for Developers
Рет қаралды 817 М.
A hands-on guide for proper Unit Testing in Go!
18:44
Flo Woelki
Рет қаралды 5 М.
Golang: The Last Interface Explanation You'll Ever Need
17:58
Flo Woelki
Рет қаралды 21 М.
Julia as a Statically Compiled Language
38:46
HEP Software Foundation
Рет қаралды 4,5 М.
Go Changes (GopherCon 2023)
22:18
Russ Cox
Рет қаралды 9 М.
Do you love Blackpink?🖤🩷
00:23
Karina
Рет қаралды 19 МЛН