GitHub 中文社区
回车: Github搜索    Shift+回车: Google搜索
论坛
排行榜
趋势
登录

©2025 GitHub中文社区论坛GitHub官网网站地图GitHub官方翻译

  • X iconGitHub on X
  • Facebook iconGitHub on Facebook
  • Linkedin iconGitHub on LinkedIn
  • YouTube iconGitHub on YouTube
  • Twitch iconGitHub on Twitch
  • TikTok iconGitHub on TikTok
  • GitHub markGitHub’s organization on GitHub
集合主题趋势排行榜
#

Test-driven development

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.

Created by Kent Beck, D.D. McCracken

发布于 1957

Website
Wikipedia
维基百科

相关主题

Behavior-driven developmentTesting
https://static.github-zh.com/github_avatars/quii?size=40
quii / learn-go-with-tests

通过 Go 语言学习测试驱动开发 (含中文版)

Test-driven developmentGoTesting
Go 22.87 k
2 个月前
https://static.github-zh.com/github_avatars/mochajs?size=40
mochajs / mocha

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

MochaJavaScriptTestingTest-driven developmentBehavior-driven developmentbrowserNode.jstest-framework
JavaScript 22.77 k
6 天前
avajs/ava
https://static.github-zh.com/github_avatars/avajs?size=40
avajs / ava

Node.js test runner that lets you develop with confidence 🚀

test-runneravaJavaScriptconcurrencyasync-functionstapassertNode.js命令行界面asyncperformanceunicornsUnit testingcli-appTest-driven developmentTestingtest-framework
JavaScript 20.79 k
7 天前
https://static.github-zh.com/github_avatars/catchorg?size=40
catchorg / Catch2

Catch2 是一个现代的 C++ 单元测试框架,带有micro-benchmarking、TDD、BDD功能

Testingtest-frameworkTest-driven developmentBehavior-driven developmentno-dependencies框架C++
C++ 19.48 k
30 分钟前
https://static.github-zh.com/github_avatars/jasmine?size=40
jasmine / jasmine

Simple JavaScript testing framework for browsers and node.js

JasmineJavaScriptTest-driven developmentTesting
JavaScript 15.77 k
1 天前
https://static.github-zh.com/github_avatars/mockito?size=40
mockito / mockito

mockito 是一个用于Java单元测试时进行数据模拟的Mock框架

mockitoJavamocking-frameworkTestingmockingmockmocksTest automationTest-driven developmentmock-libraryjava-library
Java 15.19 k
17 天前
https://static.github-zh.com/github_avatars/karma-runner?size=40
karma-runner / karma

Spectacular Test Runner for JavaScript

karmatest-runnerJavaScriptBehavior-driven developmentqunitMochabrowserJasmineTest-driven development
JavaScript 11.97 k
4 个月前
sinonjs/sinon
https://static.github-zh.com/github_avatars/sinonjs?size=40
sinonjs / sinon

Test spies, stubs and mocks for JavaScript.

stubsJavaScriptTest-driven developmentUnit testingsinonstubtest-spies
JavaScript 9.73 k
3 天前
https://static.github-zh.com/github_avatars/onsi?size=40
onsi / ginkgo

一个现代的 Go 测试框架

GoTestingTest-driven developmentBehavior-driven developmentbdd-framework
Go 8.68 k
1 天前
chaijs/chai
https://static.github-zh.com/github_avatars/chaijs?size=40
chaijs / chai

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

JavaScriptassertionsChaiTest-driven developmentBehavior-driven development
JavaScript 8.21 k
12 天前
https://static.github-zh.com/github_avatars/sschmid?size=40
sschmid / Entitas

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

C#UnityecsTest-driven developmentperformancedesign-patterndesign-patterns游戏开发游戏引擎code-generationentityentity-component-systemgame
C# 7.42 k
1 年前
https://static.github-zh.com/github_avatars/DATA-DOG?size=40
DATA-DOG / go-sqlmock

Sql mock driver for golang to test database interactions

sql-driverGomock数据库Test-driven developmentTestingSQL
Go 6.37 k
9 个月前
https://static.github-zh.com/github_avatars/doctest?size=40
doctest / doctest

一个快速、功能丰富的 C++ 单文件头测试框架

C++doctestTest-driven developmentTestingUnit testingheader-onlysingle-filecpp23
C++ 6.26 k
10 天前
https://static.github-zh.com/github_avatars/goss-org?size=40
goss-org / goss

Quick and Easy server testing/validation

gosshealth-endpointDevOpsTest-driven developmenttdd-utilitiesTestingInfrastructure as codehealth-checkGoDockernagiostapLinuxdevops-toolssensu
Go 5.75 k
1 个月前
mockk/mockk
https://static.github-zh.com/github_avatars/mockk?size=40
mockk / mockk

mocking library for Kotlin

verificationmatcherKotlinmocking-frameworkmockTestingTest-driven developmentHacktoberfest
Kotlin 5.58 k
11 天前
https://static.github-zh.com/github_avatars/cweill?size=40
cweill / gotests

Automatically generate Go test boilerplate from your source code.

golang-toolsTestingcode-generatorGogolang-applicationTest-driven developmenttest-generationtable-driven-testgo-test命令行界面go-testing
Go 5.07 k
2 年前
dubzzz/fast-check
https://static.github-zh.com/github_avatars/dubzzz?size=40
dubzzz / fast-check

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

property-based-testingquickcheckTypeScriptTestinggenerative-testingUnit testingTest-driven developmentFuzzing/Fuzz testingfaker
TypeScript 4.54 k
7 天前
ivanpaulovich/clean-architecture-manga
https://static.github-zh.com/github_avatars/ivanpaulovich?size=40
ivanpaulovich / clean-architecture-manga

🌀 Clean Architecture with .NET6, C#10 and React+Redux. Use cases as central organizing structure, completely testable, decoupled from frameworks

solid-principlesddd-architectureclean-architectureclean-code.NETevolutionary-architecture微服务design-patternsDockerTest-driven developmentDomain-driven design (DDD)onion-architecturehexagonal-architecturewebapientity-framework-coremodular-applicationscleanarchitecturedotnet5monorepoReact
C# 4.12 k
2 年前
https://static.github-zh.com/github_avatars/Behat?size=40
Behat / Behat

BDD in PHP

PHPbehatgherkindocumentation-toolTest-driven developmentBehavior-driven developmentCucumberHacktoberfest
PHP 3.94 k
6 天前
fluentassertions/fluentassertions
https://static.github-zh.com/github_avatars/fluentassertions?size=40
fluentassertions / fluentassertions

FluentAssertions 是一个基于.NET 的断言库,它提供了一种链式调用的方式来编写断言语句。

fluent-assertionsC#assertionsTest-driven developmentbdd-styleUnit testingxunitmstestHacktoberfest
C# 3.8 k
13 天前
loading...