Learn Everything

Module · Backend Engineer

Testing Backend Code

The test pyramid, the database that lies to you, and the load you have to survive.

2 topics4 interactive tasks

TOPIC 01

The Test Layers

Fast unit tests, honest integration tests, and the e2e suite you keep small.

What you'll practice

  • Define the Test Layers — guided · beginner
  • Make the Database Testable — practice · intermediate

A command you'll meet

cat ~/tests/strategy.md

Tests are the cheapest way to change code safely. Open the task below for the full walkthrough.

TOPIC 02

Contracts & Load

What the consumers promise, and what the service has to survive.

What you'll practice

  • Write the Contract Rules — practice · intermediate
  • Define the Load You Must Survive — challenge · advanced

A command you'll meet

cat ~/tests/load.yaml

A contract is a promise between teams. Open the task below for the full walkthrough.