Skip to content
C Codeloom

Topics / Testing

Testing

Writing tests that actually catch bugs. Unit, integration, and end-to-end.

Why learn Testing?

  • Tests turn fear into a green checkmark before every deploy.

  • A small testing habit pays back compounding interest.

  • Engineers who test ship faster, not slower, over the long run.

  • A near-universal expectation for senior roles.

What you can build with Testing

Pytest, Vitest, Jest, Playwright Catching regressions in CI Refactoring with confidence Documenting expected behavior

Testing tutorials

4 articles

Hand-written tutorials, ordered as a recommended learning path.

  1. 01 Mocks & Stubs The test-double vocabulary cleared up — mocks vs stubs vs fakes vs spies, when to mock at boundaries, when over-mocking ruins tests, with Python and JavaScript examples.
  2. 02 Testing Get productive with Go tests fast: writing _test.go files, table-driven tests with t.Run, running with go test flags, coverage, and an intro to benchmarks.
  3. 03 Integration Tests A practical look at integration testing alongside unit tests, covering fixtures, real databases in tests, and the right balance with examples in pytest and vitest.
  4. 04 Playwright E2E A practical guide to end-to-end testing with Playwright, covering installation, writing your first test, selectors, auto-wait, and running the suite in CI.