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
Documentation
Roadmap
Contributing
Get Involved
- GitHub Discussions: if you want to share ideas
- GitHub Issues: if you find bugs, other issues, or would like to submit feature requests
- GitHub Merge Requests: if you think you know what you're doing, you're very welcome!
Donations
To support me in my work on this and other projects, you can make donations with the following currencies:
- Bitcoin:
BC1Q45QEE6YTNGRC5TSZ42ZL3MWV8798ZEF70H2DG0 - Ethereum:
0xA32C3bBC2106C986317f202B3aa8eBc3063323D4 - Fiat (via Credit or Debit Card, Apple Pay, Google Pay, Revolut Pay)
Donations help me:
- dedicate more time to developing and maintaining open-source projects
- cover costs for IT infrastructure
- finance projects requiring additional hardware & compute
About the Developer
This project is developed by a human one-man team, publishing under the name Emendir.
I build open technologies trying to improve our world;
learning, working and sharing under the principle:
Freely I have received, freely I give.
Feel welcome to join in with code contributions, discussions, ideas and more!
Open-Source in the Public Domain
I dedicate this project to the public domain. It is open source and free to use, share, modify, and build upon without restrictions or conditions.
I make no patent or trademark claims over this project.
Formally, you may use this project under either the:
- MIT No Attribution (MIT-0) or
- Creative Commons Zero (CC0) licence at your choice.
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 emtest-0.0.4.tar.gz.
File metadata
- Download URL: emtest-0.0.4.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86c1261ecf865eb65363125a4bf2519aa137568b84cdb121d706a50578a04d72
|
|
| MD5 |
c258ceb2166fc69892fb927f7c50437a
|
|
| BLAKE2b-256 |
22ec1757585f5ece993a4366fe3d455f8153361f303c2ed346fedffd416d7327
|
File details
Details for the file emtest-0.0.4-py3-none-any.whl.
File metadata
- Download URL: emtest-0.0.4-py3-none-any.whl
- Upload date:
- Size: 11.1 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 |
18b9f5a370273c819d6adcb44774a4bac359a48bf003f2a7fc2a656f35f93499
|
|
| MD5 |
33745149b475dec8d0e6216a43531990
|
|
| BLAKE2b-256 |
9356e567de7c9d58592e2c35f425de882907fe17de689bfccf1c4c144240eeb8
|