Best of TDDAugust 2024

  1. 1
    Article
    Avatar of awegoAwesome Go·2y

    Full Introduction to Golang with Test-Driven Development. Part I

    This post provides a comprehensive introduction to Golang with a focus on Test-Driven Development (TDD). It guides you through writing a classic 'Hello, World!' program using TDD principles, including creating and organizing folders, initializing a Go module, and writing functional tests. It also covers the basics of Go packages, the `go.mod` file, and the use of the `fmt` package for printing to the terminal.

  2. 2
    Article
    Avatar of atomicobjectAtomic Spin·2y

    Tips for Using React Testing Library to Write Unit Tests

    Unit testing ensures code functions as expected. Test-driven development (TDD) at Atomic Object involves writing tests based on code requirements first. This post offers tips for using React Testing Library efficiently, such as choosing the right query method (getBy, findBy, queryBy), avoiding multiple assertions in a waitFor, and using screen instead of destructuring functions from render. Also, using an ESLint plugin can help avoid common pitfalls.