Intro to Unit Testing in Golang



Intro to Unit Testing in Golang

Intro to Unit Testing in Golang

Timestamp:
00:00 Introduction
03:42 What is Unit Testing?
04:37 What Unit Tests are not?
05:33 Why Unit Test in Go?
06:50 When Do You Unit Test?
10:49 Testing Workflow TBT & BDT?
17:06 Unit Testing Techniques
17:49 Subtests
18:22 Parallel Test
18:41 Mocking Techniques
29:59 Fuzzing Techniques
31:04 Why the Fuzz
33:38 When Should You Unit Test?
35:49 Summary
38:24 References
39:20 Q1 What are your techniques to avoid fragile tests?
40:53 Q2 At what point is it worth investing learning time to learn a tool mockgen?
41:50 Q3 How to test if there are any dependancies on the function inside my function?

This event is brought to you by Go Singapore. GoSG is a meetup for the Go programming enthusiasts in Singapore.

Name: Utkarsh Mani Tripathi (Software Engineer, JFrog)
Topic: Profiling Golang REST API

In this talk, Utkarsh will discuss the various unit testing techniques, tips, and tricks in Golang to improve the development lifecycle and make code look cleaner. He will also brief about his experience with the behavior-driven tests and share his learnings while working with the Ginkgo framework.

Utkarsh Mani Tripathi is a maintainer of openebs/jiva project and has contributed to building both the control and data plane of OpenEBS. He is an open-source contributor and loves to learn about file-system, distributed systems, and networking. Currently, he is responsible for developing features in Conan center and other community projects at JFrog

*

For more updates on upcoming events, follow us on social media:
✉️ Newsletter → https://goo.gle/devspace-news
👤 Facebook → https://www.facebook.com/DevSpaceSG/
🐦 Twitter → https://twitter.com/DevSpaceSG
🔴 Meetup →https://www.meetup.com/developer-space/

Comments are closed.