Testing utilities which I find useful.
Project description
emtest - Python Testing Utilities
A Python package providing testing utilities.
Features
🎨 Clean Test Output for Pytest
- MinimalReporter: Custom pytest reporter with clean, colored output using simple symbols (✓/✗/-)
- Configurable Output: Toggle between minimal and standard pytest output modes
🔧 Development Utilities
- Source Path Management: Dynamically add directories to Python path for testing source code
- Module Source Validation: Ensure modules are loaded from source directories (not installed packages)
- Thread Cleanup Monitoring: Wait for and verify proper thread cleanup in tests
⚡ Enhanced Test Execution
- Dual Execution Pattern: Run tests both as pytest tests and standalone Python scripts
- Breakpoint Integration: Easy debugging with pytest's
--pdbintegration - Progress Indicators: Visual progress bars for waiting operations
Installation
pip install emtest
Usage
See the examples/ directory for complete working examples showing:
- Basic test setup with
conftest.py - Dual execution pattern implementation
- Source loading validation
- Thread cleanup testing
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
emtest-0.0.1.tar.gz
(7.2 kB
view details)
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 emtest-0.0.1.tar.gz.
File metadata
- Download URL: emtest-0.0.1.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69a87f76fbe64c6708a21c938c2580a084641d3dec92f512bcddccf649995989
|
|
| MD5 |
913bc64c26dcad089a03b9f82cdb7c1e
|
|
| BLAKE2b-256 |
9d282dee5e7dd7c14dda26e5583fc58b9216324c84209f9bc35e2f8e2339ead4
|
File details
Details for the file emtest-0.0.1-py3-none-any.whl.
File metadata
- Download URL: emtest-0.0.1-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7fd5823a948efdfc831126c9a01b52793b4ebabc2b77bce677a33203d8079e08
|
|
| MD5 |
c1eab8f1b35f48fb636640f2dc1b1d5f
|
|
| BLAKE2b-256 |
25a4fa4ede13ba531d811371ff60e16e1746620f55eec1a7f78ea8f6ac9658a6
|