Skip to content

Commit 9ae8d76

Browse files
committed
Add example on how to use Poetry 🎭 + pytest 🧪
1 parent c11c7d3 commit 9ae8d76

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

TESTING.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Testing 🧪🧫 in Fiji / ImageJ2
22

3+
## Using 🎭 Poetry, pytest 🐍🔬 and Python 3 for plain Python code
4+
5+
The easiest way to run [`pytest`][pytest] (using Python 3) is when you're
6+
already having a working [poetry] setup. In that case tests can simply be run by
7+
using the `run-poetry.sh` wrapper script, for example:
8+
9+
```bash
10+
scripts/run-poetry.sh run pytest tests/test_misc.py
11+
```
12+
313
## Using pytest 🐍🔬 and Python 3 for plain Python code
414

515
Those parts of the package that do not interact / depend on ImageJ objects can

0 commit comments

Comments
 (0)