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.

☕️ simple, flexible, fun javascript test framework for node.js & the browser

JavaScript
22749
8 天前

Learn Go with test-driven development

Go
22701
4 天前

A modern, C++-native, test framework for unit-tests, TDD and BDD - using C++14, C++17 and later (C++11 support is in v2.x branch, and C++03 on the Catch1.x branch)

C++
19304
19 小时前

Simple JavaScript testing framework for browsers and node.js

JavaScript
15778
7 天前
sinonjs/sinon
JavaScript
9719
11 天前
chaijs/chai

BDD / TDD assertion framework for node.js and the browser that can be paired with any testing framework.

JavaScript
8203
10 天前

Entitas is a super fast Entity Component System (ECS) Framework specifically made for C# and Unity

C#
7365
1 年前

Sql mock driver for golang to test database interactions

Go
6332
7 个月前

The fastest feature-rich C++11/14/17/20/23 single-header testing framework

C++
6173
5 个月前
dubzzz/fast-check

Property based testing framework for JavaScript (like QuickCheck) written in TypeScript

TypeScript
4482
2 天前
fluentassertions/fluentassertions

A very extensive set of extension methods that allow you to more naturally specify the expected outcome of a TDD or BDD-style unit tests. Targets .NET Framework 4.7, as well as .NET Core 2.1, .NET Core 3.0, .NET 6, .NET Standard 2.0 and 2.1. Supports the unit test frameworks MSTest2, NUnit3, XUnit2, MSpec, and NSpec3.

C#
3807
19 天前

《系统重构与迁移指南》手把手教你分析、评估现有系统、制定重构策略、探索可行重构方案、搭建测试防护网、进行系统架构重构、服务架构重构、模块重构、代码重构、数据库重构、重构后的架构守护

Java
3440
4 年前

AutoFixture is an open source library for .NET designed to minimize the 'Arrange' phase of your unit tests in order to maximize maintainability. Its primary goal is to allow developers to focus on what is being tested rather than how to setup the test scenario, by making it easier to create object graphs containing test data.

C#
3430
2 天前
PowerShell
3165
11 天前

Run your tests at the speed of thought

Vim Script
3069
17 天前