Skip to content

Source code from the "Learning TDD" book

Notifications You must be signed in to change notification settings

c4rt0/tdd-book-code

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a monorepo containing all the source code for the "Learning Test-Driven Development" book, published by O'Reilly.

Prerequisites

You need to install the runtime environments for Go, Node.js, and Python 3 to run the code in this repo.

Beyond these, you may need other tools -- e.g. "act" to run the GitHub actions locally, gocyclo to check cyclomatic complexity of Go, jshint to do static analysis of JavaScript code, and flake8 for static analysis of Python code.

To understand the evolution and purpose of the code, you need the accompanying book.

How to run tests

In brief, use the following commands to run the tests for each language.

Go

cd go
go test -v ./...

JavaScript

node js/test_money.js

Python

python3 py/test_money.py

How to get the book

The book is available at Amazon and O'Reilly.

About

Source code from the "Learning TDD" book

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 38.2%
  • Go 33.3%
  • Python 28.5%