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
22701
4 天前
sinonjs/sinon
JavaScript
9719
11 天前
mjhea0/flaskr-tdd

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

Python
2330
1 个月前
cpputest/cpputest
C++
1416
1 天前

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

TypeScript
1280
10 个月前
JavaScript
849
2 年前

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

Python
796
5 个月前

🔬 a Vue.js testing utility library

JavaScript
755
2 年前
Python
699
2 个月前

✅ 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
681
5 天前

bash unit testing enterprise edition framework for professionals

Shell
615
3 天前

Aprenda Go com desenvolvimento orientado a testes

Go
491
1 年前