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.1.tar.gz (9.0 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.1-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytestmate-0.1.1.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.6.13

File hashes

Hashes for pytestmate-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c012988f0f14434ee7d08e073ef56c845dc33e1c674d2e6844e476e35ad19fa4
MD5 706d33e33c26167ab04158f06682ed56
BLAKE2b-256 ae5514167a69d3a3debad6ebed4720f49031938b84ed41271c099f8660b668db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytestmate-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.6.13

File hashes

Hashes for pytestmate-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 73bce274b5f23f7e687ad7e85247db278b472a817ef0d8caac5835f6673b0f2a
MD5 e2c3eaf3747de109ecbb70aa132cd17b
BLAKE2b-256 79f7042d33ff4fed7eccbf3a21a8e3c7d7f2c0be5b1fd6706f465d9bc7691767

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