Generate Pytests for your project through the terminal.
Project description
PytestMate
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:
- Verifies that you're in a Python project
- Identifies Python source files
- Creates a test directory structure
- 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.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
835e0bc97c48933f471be4f904f5ae6198fc6e7412084dfe012d7d134c07b5be
|
|
| MD5 |
55d4adecd5884dac2c190c1ddd1c5f33
|
|
| BLAKE2b-256 |
97e5e65d041a99aa5faed72f5f9bf79654d96a881950a7b0277464abe80db9c1
|
File details
Details for the file pytestmate-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pytestmate-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e4ecdc289998352ca32fb7913ddb982e60c385e481dd0ad37e3c81454e9f487
|
|
| MD5 |
3dbe04e729f6d0953d770c3d7332f3f4
|
|
| BLAKE2b-256 |
c7e9ba46fcaccdf4a425f309e5ee94b8d30f682fc6bd542521ccd272bb3a688c
|