Skip to main content

AI-powered test failure analysis and fix suggestions

Project description

UnitSauce

AI-powered test fixer for Python projects.

What it does

Analyzes failing tests, identifies bugs in recent code changes, and suggests fixes using Claude.

Install

pip install -r requirements.txt
cp .env.example .env
# Add your Anthropic API key to .env

Usage

python main.py /path/to/your/project

The tool will:

  1. Run pytest and detect failures
  2. Analyze git diff to find recent changes
  3. Ask if you want to fix the code or update the test
  4. Generate and apply a fix
  5. Verify the fix works

Requirements

  • Python 3.10+
  • Anthropic API key
  • Project must be a git repository

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unitsauce-0.1.0.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

unitsauce-0.1.0-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file unitsauce-0.1.0.tar.gz.

File metadata

  • Download URL: unitsauce-0.1.0.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for unitsauce-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ff76a4952a2c003330cdb23379e384ded7e016136e8706ed41d97e6aca187bff
MD5 e455dfea5e174892de66e067299bfc4e
BLAKE2b-256 c1b1643b05eecfd3563fe08a8ee0379712f58506839b852ebafe7a94b66323b9

See more details on using hashes here.

File details

Details for the file unitsauce-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: unitsauce-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for unitsauce-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cece461e42a2bc1ef29e0266a512c7f8be1510c6ddf32bf0fff3dbab3e14bf8b
MD5 37337ec5bcec66666b9d9ccad65744bf
BLAKE2b-256 8f242ece39b2b8566cfee275a738071efbca2aaf7b4db719816bf1defa9ac441

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page