![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
microPyTest is a minimal, pure python-based test runner that you can use directly in code.
micropytest
command, but embedding in your own code is the primary focus.pip install micropytest
Suppose you have some test files under my_tests/
:
# my_tests/test_example.py
def test_basic():
assert 1 + 1 == 2
def test_with_context(ctx):
ctx.debug("Starting test_with_context")
assert 2 + 2 == 4
ctx.add_artifact("numbers", {"lhs": 2, "rhs": 2})
You can run them from a Python script:
import micropytest.core
results = micropytest.core.run_tests(tests_path="my_tests")
passed = sum(r["status"] == "pass" for r in results)
total = len(results)
print("Test run complete: {}/{} passed".format(passed, total))
ctx
parameter gets a TestContext object with .debug()
, .warn()
, .add_artifact()
, etc.If you’re coming from pytest:
No fixtures or plugins
microPyTest is intentionally minimal. Tests can still share state by passing a custom context class if needed.
No complex configuration
There’s no pytest.ini
or conftest.py
. Just put your test functions in test_*.py
or *_test.py
.
Artifact handling is built-in
ctx.add_artifact("some_key", value)
can store files or data for later review. No extra plugin required.
Time estimates for each test
Code-first
You typically call run_tests(...)
from Python scripts. The CLI is optional if you prefer it.
See the examples subfolder
If you prefer a command-line flow:
micropytest [OPTIONS] [PATH]
-v, --verbose
: Show all debug logs & artifacts.-q, --quiet
: Only prints a final summary.Example:
micropytest -v my_tests
Enjoy your micro yet mighty test runner!
FAQs
A micro test runner
We found that micropytest demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.