Skip to content

Commit c8afc12

Browse files
committed
Updates to testing from #70
1 parent ec37ab2 commit c8afc12

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

docs/project-contributions.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ auditwheel repair target/wheels/c2pa_python-0.4.0-py3-none-linux_aarch64.whl
6767

6868
## Testing
6969

70-
We use [PyTest](https://docs.pytest.org/) for testing.
70+
We use [PyTest](https://docs.pytest.org/) and [unittest](https://docs.python.org/3/library/unittest.html) for testing.
7171

7272
Run tests by following these steps:
7373

@@ -85,3 +85,21 @@ maturin develop
8585
python3 tests/training.py
8686
deactivate
8787
```
88+
89+
### Testing during bindings development
90+
91+
While developing bindings locally, we use [unittest](https://docs.python.org/3/library/unittest.html), since [PyTest](https://docs.pytest.org/) can get confused by virtual environment re-deployments (especially if you bump the version number).
92+
93+
To run tests while developing bindings, enter this command:
94+
95+
```sh
96+
make test
97+
```
98+
99+
To rebuild and test, enter these commands:
100+
101+
```sh
102+
make build-python
103+
make test
104+
```
105+

0 commit comments

Comments
 (0)