Welcome to a new series on The Engineering Coach! As your coding coach, I believe that a solid testing strategy is the foundation of every robust application. In this series, we'll build a complete REST API using Test-Driven Development (TDD) and explore the different layers of the Test Pyramid.
In this first episode, we'll start at the top of the pyramid with end-to-end testing. You'll see how we use PHPUnit and Guzzle to test-drive the creation of two key endpoints: a /health endpoint to check the service's status and a 404 Not Found error handler.
This video is an essential guide for anyone who wants to learn how to design an API from the perspective of its consumers.
The code for this episode can be found on GitHub: https://github.com/the-engineering-co...
Let's Connect
For more software engineering tutorials and coaching, subscribe to The Engineering Coach on YouTube. You can also connect with me on Bluesky or Mastodon.
Mastodon: https://mastodon.social/@braddle
Bluesky: https://bsky.app/profile/braddle1.bsk...
LinkedIn: / mark-bradley-engineering-coach
#TestPyramid #E2ETesting #EndToEndTesting #RESTAPI #PHP #TDD #TheEngineeringCoach