AI-TDD  by di-sukharev

GPT-powered CLI tool for test-driven development

Created 2 years ago
280 stars

Top 93.0% on SourcePulse

GitHubView on GitHub
Project Summary

This CLI tool automates Test-Driven Development (TDD) by leveraging GPT models to write code that passes user-provided tests. It targets developers seeking to accelerate their coding workflow by offloading repetitive code generation tasks to AI, enabling faster iteration and validation.

How It Works

AI-TDD operates by taking a test suite as input and prompting a GPT model (defaulting to the latest available) to generate the necessary code to satisfy those tests. The process iterates, feeding the generated code back into the test runner until all tests pass. This approach aims to significantly reduce the manual effort in writing boilerplate code and implementing logic based on test specifications.

Quick Start & Requirements

  • Install via curl -sSL https://raw.githubusercontent.com/di-sukharev/AI-TDD/master/install.sh | bash
  • Requires Bun (latest version recommended).
  • Requires an OpenAI API key with payment details configured.
  • Test runner command must be configured (e.g., npm run test).
  • OpenAI API usage costs apply.

Highlighted Details

  • Supports various testing frameworks, including Jest and Testing Library for frontend tests.
  • Allows configuration of maximum response tokens for GPT.
  • Demonstrates successful generation of React components based on test cases.

Maintenance & Community

  • Project appears to be maintained by a single author, di-sukharev.
  • No explicit community channels (Discord, Slack) or roadmap are mentioned in the README.

Licensing & Compatibility

  • The README does not specify a license.

Limitations & Caveats

The tool relies heavily on the OpenAI API, incurring costs per request. The README notes that the author encountered difficulties in getting the ChatGPT model to reliably solve problems through few-shot prompting, suggesting potential limitations in AI's current ability to handle complex or nuanced coding tasks without significant prompt engineering.

Health Check
Last Commit

1 year ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
3 stars in the last 30 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), Meng Zhang Meng Zhang(Cofounder of TabbyML), and
3 more.

qodo-cover by qodo-ai

0.2%
5k
CLI tool for AI-powered test generation and code coverage enhancement
Created 1 year ago
Updated 2 months ago
Feedback? Help us improve.