Creating Well-tested Applications in Go

Creating Well-tested Applications in Go

English | MP4 | AVC 1280×720 | AAC 44KHz 2ch | 1h 27m | 177 MB

In this course, you’ll get an overview of Go’s testing landscape and learn how to test and profile your own applications.

Today’s software applications are addressing an increasingly challenging set of problems. Meanwhile, the consumers of those applications have little tolerance for bugs and poor performance. In this challenging environment, automated tests have become a vital tool to ensure that applications are correct and performant.

In this course, Creating Well-tested Applications in Go, you’ll gain the ability to create automated test suites for your Go applications. First, you’ll learn how to create assertion-style tests, commonly used in unit, integration, and end-to-end test suites. Next, you’ll discover how to add performance benchmark tests to your critical code paths to ensure that your users aren’t waiting any longer than necessary. Finally, you’ll explore how to use your test suites to gather profiling information about how system resources are being utilized to identify inefficiencies and performance bottlenecks. When you’re finished with this course, you’ll have the skills and knowledge of testing in Go needed to meet your customers expectations for quality and performance.

Table of Contents

Course Overview
1 Course Overview

Introduction to Testing
2 Introduction
3 Overview of Testing in Go
4 Demo – Creating a Simple Test
5 Test-related Packages
6 Useful Community Projects
7 Summary

Creating and Running Tests
8 Introduction
9 Naming Conventions
10 Demo – Creating Tests
11 Writing Tests
12 Demo – Writing Tests
13 Running Tests
14 Demo – Running Tests
15 Demo – Generating Test Coverage Reports
16 Demo – Creating Table-driven Tests
17 Other Useful Functions
18 Summary

Benchmarking and Profiling
19 Introduction
20 Writing Benchmark Tests
21 Demo – Writing Benchmark Tests
22 Running Benchmark Tests
23 Demo – Running Benchmark Tests
24 Profiling Tests
25 Demo – Profiling Tests
26 Summary