#

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.

https://static.github-zh.com/github_avatars/mochajs?size=40

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

翻译☕️用于node.js和浏览器的简单,灵活,有趣的javascript测试框架

JavaScript 22.75 k
4 天前
https://static.github-zh.com/github_avatars/quii?size=40

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

Go 22.69 k
15 天前
avajs/ava
https://static.github-zh.com/github_avatars/avajs?size=40
JavaScript 20.77 k
21 小时前
https://static.github-zh.com/github_avatars/catchorg?size=40

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

C++ 19.29 k
3 天前
https://static.github-zh.com/github_avatars/jasmine?size=40

Simple JavaScript testing framework for browsers and node.js

翻译针对浏览器和node.js的简单JavaScript测试框架

JavaScript 15.78 k
3 天前
https://static.github-zh.com/github_avatars/mockito?size=40
Java 15.11 k
3 天前
https://static.github-zh.com/github_avatars/karma-runner?size=40

Spectacular Test Runner for JavaScript

翻译JavaScript的壮观测试运行器

JavaScript 11.97 k
2 个月前
sinonjs/sinon
https://static.github-zh.com/github_avatars/sinonjs?size=40

Test spies, stubs and mocks for JavaScript.

翻译测试JavaScript的间谍,存根和模拟。

JavaScript 9.72 k
7 天前
chaijs/chai
https://static.github-zh.com/github_avatars/chaijs?size=40

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

翻译适用于node.js的BDD / TDD断言框架以及可与任何测试框架配对的浏览器。

JavaScript 8.2 k
6 天前
https://static.github-zh.com/github_avatars/sschmid?size=40

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

翻译Entitas是专门用于C#和Unity的超快速实体组件系统(ECS)框架

C# 7.36 k
1 年前
https://static.github-zh.com/github_avatars/DATA-DOG?size=40

Sql mock driver for golang to test database interactions

翻译用于Golang的SQL模拟驱动程序以测试数据库交互

Go 6.33 k
7 个月前
https://static.github-zh.com/github_avatars/doctest?size=40
C++ 6.17 k
4 个月前
https://static.github-zh.com/github_avatars/goss-org?size=40
Go 5.72 k
4 个月前
https://static.github-zh.com/github_avatars/cweill?size=40

Automatically generate Go test boilerplate from your source code.

翻译从您的源代码生成Go测试。

Go 5.05 k
2 年前
dubzzz/fast-check
https://static.github-zh.com/github_avatars/dubzzz?size=40
TypeScript 4.48 k
20 小时前
ivanpaulovich/clean-architecture-manga
https://static.github-zh.com/github_avatars/ivanpaulovich?size=40

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

翻译:cyclone:使用.NET Core 3.1,C#8和React + Redux的干净架构。用例作为中心组织结构,可完全测试,与框架分离

C# 4.08 k
2 年前
fluentassertions/fluentassertions
https://static.github-zh.com/github_avatars/fluentassertions?size=40

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

C# 3.81 k
15 天前
loading...

Created by Kent Beck, D.D. McCracken

发布于 1957

Website
Wikipedia
维基百科

相关主题

Behavior-driven developmentTesting