PPL 2021 — Introduction to Test-Driven Development

I don’t always test my code. But when I do, it’s in production

Photo by James Harrison on Unsplash

This article is made as a part of Individual Review of PPL 2021.

When that happens, every developer meets with a headache as a bit of change in one function can alter the whole program and need so many adjustments.

Test-Driven Development Illustration

The main benefits of Test-Driven Development are a significant decrease in defect rates and better bug detection in the development stage.

Example of Test-Driven Development

pip install coverage
coverage run --source="." manage.py test
coverage html
Coverage of the Unit Test
Version Control log showing every stage of Test-Driven Development

Under-graduated Students Majoring in Computer Science