#

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/quii?size=40

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

Go 23.16 k
1 个月前
https://static.github-zh.com/github_avatars/mochajs?size=40

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

JavaScript 22.84 k
2 天前
https://static.github-zh.com/github_avatars/catchorg?size=40

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

C++ 19.81 k
12 小时前
https://static.github-zh.com/github_avatars/jasmine?size=40

Simple JavaScript testing framework for browsers and node.js

JavaScript 15.83 k
16 小时前
https://static.github-zh.com/github_avatars/mockito?size=40
Java 15.28 k
1 天前
sinonjs/sinon
https://static.github-zh.com/github_avatars/sinonjs?size=40
JavaScript 9.74 k
1 个月前
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.

JavaScript 8.25 k
24 天前
https://static.github-zh.com/github_avatars/sschmid?size=40
C# 7.54 k
2 年前
https://static.github-zh.com/github_avatars/DATA-DOG?size=40

Sql mock driver for golang to test database interactions

Go 6.45 k
1 年前
https://static.github-zh.com/github_avatars/doctest?size=40
C++ 6.4 k
18 天前
dubzzz/fast-check
https://static.github-zh.com/github_avatars/dubzzz?size=40
TypeScript 4.61 k
5 小时前
fluentassertions/fluentassertions
https://static.github-zh.com/github_avatars/fluentassertions?size=40

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

C# 3.81 k
1 天前
loading...

Created by Kent Beck, D.D. McCracken

发布于 1957

Website
Wikipedia
维基百科

相关主题

Behavior-driven developmentTesting