036: End to End & Integration Tests - Test Driven Development (TDD) to create a REST API (Golang)

Опубликовано: 03 Ноябрь 2024
на канале: Testing All The Things
698
9

In this episode of Testing All The Things we continues to use Test Driven Development (TDD) to drive out the implementation the simple HTTP REST(ish) API in Go using Gorilla Mux.

In this video we use end to end testing to drive out the functionality to validate the ISBN that is requested. During the video we create a Business Logic layer to validate the incoming ISBN to separate the knowledge of the HTTP layer into the REST Handler and keep the database code in its own code. We use Unit Tests to drive out the implementation of the new business logic code.

The code produced during this episode can be found on GitHub:
https://github.com/testingallthething...

You can follow me on twitter:   / braddle  

** Please Rate, Review, Subscribe and Share these videos **