[KongchangAI]
ConceptTDD / Test-Driven Development

Test-Driven Development

A software development methodology that requires developers to write failing test cases before writing the implementation code that makes those tests pass. This approach drives sound interface design and code quality by anchoring development around predefined test specifications.

Core Facts

Timeline (last 90 days)

Nov 25

The falsifiable hypothesis framework forces the agent to define success criteria first and then make changes, similar to test-driven development (TDD) but more focused on validating hypotheses about performance or quality attributes.

Unverified50%
Nov 20

The difference between specification-driven development and test-driven development is that a specification describes "what to do and why", rather than "how to verify".

Unverified50%
Nov 6

DevDeck's reproduction prompt is essentially moving the TDD loop into a human-AI collaboration scenario, letting the AI execute the red and green phases while humans only set the boundary conditions.

Unverified50%
Nov 6

The classic loop of test-driven development is 'red-green-refactor': first write a failing test, then write the minimum code to make it pass, and finally refactor under the protection of the tests.

Unverified50%
Oct 27

The Implement skill uses test-driven development (TDD) to carry out the actual implementation.

Unverified50%
Oct 27

The difference between spec-driven development and test-driven development is that TDD uses executable tests as the contract, while spec-driven development uses natural-language specs plus metadata as the contract.

Unverified50%
Oct 26

Formal methods, design by contract, and test-driven development are all essentially about transforming vague quality expectations into executable assertions.

Unverified50%
Oct 20

Upfront constraints are similar to "test first" in test-driven development: first define "what counts as correct," then let the generation process converge in that direction.

Unverified50%
Oct 16

Unlike traditional test-driven development, SDD moves acceptance criteria forward to the natural-language level, allowing non-engineering roles (product, security, compliance) to participate in review.

Unverified50%
Oct 12

To remedy the problem of AI-generated code lacking boundary condition handling, one needs to explicitly state exception requirements in the prompt, or introduce test-driven development (TDD) to have the AI write tests first and then the implementation, thereby making boundary conditions explicit.

Unverified50%

5 more timeline events

All Facts (20)

Verified

A TDD test-driven approach can be adopted, having the AI write tests first and then write the implementation to pass those tests.

80%
Verified

Establishing a standard working loop of AI generation → manual validation → fix and optimization is the key to mastering AI programming tools.

80%
Verified

The core TDD cycle is: first write a failing test case (Red) → write the minimum amount of code to make the test pass (Green) → refactor the code (Refactor).

80%
Verified

In the traditional test case writing process, test engineers need to manually break down functional modules, devise test scenarios, and write operation steps and expected results.

80%
Verified

SDD (Specification-Driven Development) emphasizes writing clear functional specifications in natural language or structured documents before generating code, in order to constrain AI output and reduce the proportion of erroneous code caused by hallucinations.

65%
Unverified

Superpowers的TDD流程要求AI先编写失败的测试用例,再编写刚好能让测试通过的最小实现代码

95%
Unverified

The Eval-Driven Development methodology of defining evaluation criteria and test sets before optimizing prompts is in the same spirit as Test-Driven Development (TDD).

60%
Unverified

The falsifiable hypothesis framework forces the agent to define success criteria first and then make changes, similar to test-driven development (TDD) but more focused on validating hypotheses about performance or quality attributes.

50%
Unverified

The difference between specification-driven development and test-driven development is that a specification describes "what to do and why", rather than "how to verify".

50%
Unverified

DevDeck's reproduction prompt is essentially moving the TDD loop into a human-AI collaboration scenario, letting the AI execute the red and green phases while humans only set the boundary conditions.

50%
Unverified

The classic loop of test-driven development is 'red-green-refactor': first write a failing test, then write the minimum code to make it pass, and finally refactor under the protection of the tests.

50%
Unverified

The Implement skill uses test-driven development (TDD) to carry out the actual implementation.

50%
Unverified

The difference between spec-driven development and test-driven development is that TDD uses executable tests as the contract, while spec-driven development uses natural-language specs plus metadata as the contract.

50%
Unverified

Formal methods, design by contract, and test-driven development are all essentially about transforming vague quality expectations into executable assertions.

50%
Unverified

Upfront constraints are similar to "test first" in test-driven development: first define "what counts as correct," then let the generation process converge in that direction.

50%
Unverified

Unlike traditional test-driven development, SDD moves acceptance criteria forward to the natural-language level, allowing non-engineering roles (product, security, compliance) to participate in review.

50%
Unverified

To remedy the problem of AI-generated code lacking boundary condition handling, one needs to explicitly state exception requirements in the prompt, or introduce test-driven development (TDD) to have the AI write tests first and then the implementation, thereby making boundary conditions explicit.

50%
Unverified

Tests should be based on specification rather than implementation.

50%
Unverified

TDD fails for AI agents because even when tests are written first, the agent still uses the same language model within the same context window to understand the requirements, making it impossible to separate the cognitive sources of the question-setter and the question-answerer.

50%
Unverified

The design philosophy behind Devin's self-testing capability is consistent with the test-driven development (TDD) concept in software engineering, with the executing subject shifting from human to AI.

50%

Source Articles