Repository navigation

#

Test-driven development

Created by Kent Beck, D.D. McCracken

发布于 1957

维基百科

相关主题

Behavior-driven developmentTesting

Test-driven development (TDD) is a software development process relying on software requirements being converted to test cases before software is fully developed, and tracking all software development by repeatedly testing the software against all test cases. This is as opposed to software being developed first and test cases created later. Programmers also apply the concept to improving and debugging legacy code developed with older techniques.

Process

  1. Add a test
  2. Run all tests. The new test should fail for expected reasons
  3. Write the simplest code that passes the new test
  4. All tests should now pass
  5. Refactor as needed, using tests after each refactor to ensure that functionality is preserved

Repeat.

Learn Go with test-driven development

Go
23073
7 天前
Java
15261
11 小时前
sinonjs/sinon
JavaScript
9733
10 天前
mjhea0/flaskr-tdd

Flaskr: Intro to Flask, Test-Driven Development (TDD), and JavaScript

Python
2337
5 个月前
cpputest/cpputest
C++
1443
23 天前

Testing, simplified. || An inclusive, accessibility-first GUI for generating clean, semantic Javascript tests in only a few clicks of a button.

TypeScript
1281
2 个月前
JavaScript
847
3 年前

Green is a clean, colorful, fast python test runner.

Python
793
9 个月前

🔬 a Vue.js testing utility library

JavaScript
752
3 年前

✅ A step-by-step complete beginner example/tutorial for building a Todo List App (TodoMVC) from scratch in JavaScript following Test Driven Development (TDD) best practice. 🌱

JavaScript
734
1 个月前
Python
698
6 个月前

bash unit testing enterprise edition framework for professionals

Shell
622
2 个月前

Aprenda Go com desenvolvimento orientado a testes

Go
494
2 年前