heru-luin/tdd-sample-project

A TDD project starting point

Installs: 7

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Language:Shell

Type:project

v1.0 2019-09-23 14:18 UTC

This package is auto-updated.

Last update: 2024-04-24 00:33:17 UTC


README

This repository contains a starting point for projects using Test Driven Development (TDD).

Repository status

Build Status codecov Github All Releases GitHub tag

Packagist

Packagist Version PHP from Packagist Packagist

Installation

composer create-project heru-luin/tdd-sample-project --stability dev
cd tdd-sample-project
chmod +x bin/red.sh bin/green.sh bin/refactor.sh

Usage

Follow the 3 TDD steps :

1. RED

Create a failing test.
Validate this step by using bin/red.sh

2. GREEN

Make tests pass.
Validate this step by using bin/green.sh

3. REFACTOR

Refactor your code until it's clean.
Validate this step by using bin/refactor.sh

4. Repeat

Go to step 1.