Debian Codegraph @

test/unit/README

raw
1 Standard run:
2
3 cd <testdir>
4 py.test
5
6 Show stdout:
7
8 py.test -s
9
10 Run serial tests in parallel python processes (needs xdist):
11
12 py.test -n 4
13
14 Run tests in parallel with MPI:
15
16 mpirun -np 3 python -B -m pytest
17
18 Debugging random test deadlocks under MPI:
19
20 cd <testdir>
21 while true; do git clean -fdx . && mpirun -n 3 xterm -e gdb -ex r -ex q -args python -m pytest -sv; done
22
23 See 'man pytest' for how to use pdb, profiling, coverage, etc.