From 7a2dcdad3652378d259d5265c7ec946c6be0eb4a Mon Sep 17 00:00:00 2001 From: Tania Mathern Date: Thu, 21 Nov 2024 09:35:42 -0800 Subject: [PATCH] Readme notes --- README.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4dce63e..c64b5fc 100644 --- a/README.md +++ b/README.md @@ -358,7 +358,7 @@ auditwheel repair target/wheels/c2pa_python-0.4.0-py3-none-linux_aarch64.whl ### Testing -We use [PyTest](https://docs.pytest.org/) for testing. +We use [PyTest](https://docs.pytest.org/) and [unittest](https://docs.python.org/3/library/unittest.html) for testing. Run tests by following these steps: @@ -377,6 +377,23 @@ python3 tests/training.py deactivate ``` +#### Testing during bindings development + +While developing bindings locally, we recommend you rely on [unittest](https://docs.python.org/3/library/unittest.html), as [PyTest](https://docs.pytest.org/) can get confused by virtual environment redeployments (especially if you bump the version number). + +To run tests while developing bindings, you can run: + +```sh +make test +``` + +If you want to rebuild and test, run: + +```sh +make build-python +make test +``` + ## Release notes ### Version 0.5.2