Skip to main content

Generate Pytests for your project through the terminal.

Project description

PytestMate

PyPI version Python Versions License Tests

A command-line tool for managing Python test infrastructure. PytestMate helps you set up, maintain, and run tests for your Python projects with minimal effort.

Features

  • Automatic Test Structure Creation: Generate test directories and test files that mirror your project structure
  • Git Integration: Use Git to track and manage Python files in your project
  • Project Validation: Ensure you're working within a valid Python project
  • Coming Soon:
    • Test file updates
    • Test execution
    • Test coverage reporting
    • Additional test file generation

Installation

pip install pytestmate

Usage

Initialize Test Structure

# Basic usage
ptm init

# Use Git for file discovery
ptm init --git

This command:

  1. Verifies that you're in a Python project
  2. Identifies Python source files
  3. Creates a test directory structure
  4. Generates test file placeholders

Other Commands (Coming Soon)

# Update existing test files
ptm update

# Run tests with pytest
ptm test

# Generate test coverage reports
ptm report

# Generate additional test files
ptm generate

Requirements

  • Python 3.7+
  • Click
  • Git (optional, for Git integration)

Development

Setup

# Clone the repository
git clone https://github.com/yourusername/pytestmate.git
cd pytestmate

# Create a virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install development dependencies
pip install -e ".[dev]"

Running Tests

pytest

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Click for the CLI framework
  • pytest for the testing framework

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

pytestmate-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.

pytestmate-0.1.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytestmate-0.1.0.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.11

File hashes

Hashes for pytestmate-0.1.0.tar.gz
Algorithm Hash digest
SHA256 835e0bc97c48933f471be4f904f5ae6198fc6e7412084dfe012d7d134c07b5be
MD5 55d4adecd5884dac2c190c1ddd1c5f33
BLAKE2b-256 97e5e65d041a99aa5faed72f5f9bf79654d96a881950a7b0277464abe80db9c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytestmate-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1e4ecdc289998352ca32fb7913ddb982e60c385e481dd0ad37e3c81454e9f487
MD5 3dbe04e729f6d0953d770c3d7332f3f4
BLAKE2b-256 c7e9ba46fcaccdf4a425f309e5ee94b8d30f682fc6bd542521ccd272bb3a688c

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