Unit Testing Unary gRPC Service in Golang (Tutorial)



Unit Testing Unary gRPC Service in Golang (Tutorial)

Unit Testing Unary gRPC Service in Golang (Tutorial)

Welcome to this gRPC video using Golang, part of the series about API Technologies in System Design. In this episode I share with you how to create Unit Tests for gPRC Service, specifically a gRPC Unary RPC using Golang.

■ Unit Testing Streaming (Server, Client and Bidirectional) gRPC Service in Golang: https://youtu.be/Owx7l7W6PNQ

== Relevant links

■ Example Code: https://github.com/MarioCarrion/grpc-microservice-example/blob/3a40645c45c8bd80c0fa957d900cf1cba928ab45/examples/server/main_test.go
■ Tutorial: System Design using gRPC with Golang: https://www.youtube.com/playlist?list=PL7yAAGMOat_EX1nv8fgltlm0CnJTH8Nwg
■ Software Architecture and System Design in Go/Golang: https://www.youtube.com/playlist?list=PL7yAAGMOat_GCd12Lrv_evJ3Zhv1dl8B-
■ Testing a gRPC Service using Postman (Golang Example): https://youtu.be/yluYiCj71ss
■ gRPC Service: Unary RPC: https://youtu.be/GgR4JDVgPOc
■ gRPC Service: Server Streaming RPC: https://youtu.be/l_74x_qQZB8
■ gRPC Service: Client Streaming RPC: https://youtu.be/wKkaCxdfEh8
■ gRPC Service: Bidirectional Streaming RPC: https://youtu.be/Z9SHd1K1k5Y

== All Go/Golang Playlists

■ Building Microservices in Go/Golang: https://www.youtube.com/playlist?list=PL7yAAGMOat_Fn8sAXIk0WyBfK_sT1pohu
■ Go/Golang Tools and Packages: https://www.youtube.com/playlist?list=PL7yAAGMOat_HEEOvH99agDs_5g51A0Ls3
■ Learning Concurrency Patterns in Go/Golang: https://www.youtube.com/playlist?list=PL7yAAGMOat_Fhj_px_DzNzTsXs-mRwv1t
■ Learning Go/Golang : https://www.youtube.com/playlist?list=PL7yAAGMOat_F7bOImcjx4ZnCtfyNEqzCy
■ Learning Relational Databases in Go/Golang: https://www.youtube.com/playlist?list=PL7yAAGMOat_EgwoQTvNUflrYL_4qzdB7f
■ Testing in Go/Golang: https://www.youtube.com/playlist?list=PL7yAAGMOat_HSeW4zF0uRL9EaHadE4ZZq

== Connect with me!

■ https://twitter.com/MarioCarrion
■ https://www.instagram.com/mario.carrion
■ https://linkedin.com/in/MarioCarrion

00:00 Unit Testing Unary gRPC Service in Golang
00:22 Introduction to Unit Testing gRPC Service Unary RPC
01:34 Implementing a Unit Testing for gRPC Service Unary RPC
12:03 Conclusion of Unit Testing Unary gRPC Service in Golang

=== Who am I?

Hello👋🏼! I’m Mario, a Hands-on Software Architect and Lead Backend Engineer with decades of professional experience building all kinds of software including on-premise Industrial Automation Systems, Linux Accessibility Desktop and Browser Components as well as Distributed Advertising Microservices.

Every week I will share with you different topics I’ve learned while working for small startups and large companies including the processes I’ve followed over the years for successfully delivering complex enterprise systems from start to end.

Subscribe if you like Software Development, Software Architecture and System Design!

Keep it up. Don’t give up!

#golang #grpc #systemdesign

=== Our Vlog Channel

https://www.youtube.com/c/RubyCarrion/videos

=== Affiliate links

■ Amazon Shop 🛒 https://www.amazon.com/shop/rubycarrion
■ Technical/Non-technical Books – Recommended by Mario Carrion 📚 https://www.amazon.com/shop/rubycarrion?listId=P8KAGIWTNH3X&ref=cm_sw_em_r_inf_list_own_rubycarrion_dp_dyqYP6yk67Hif

DISCLAIMER: Some of the links shared above are affiliate links. As a member of these affiliate programs, I earn a small commission from your purchases at no additional cost to you. Thank you in advance for your support!

Comments are closed.