Skip to content

How to run & debug OpenVINO's pytest? #13

Answered by usstq
usstq asked this question in Q&A
Discussion options

You must be logged in to vote

Debug pytest

If we only want to debug the C++ part invoked by a python script, than the simplest way is using gdb:

gdb --args python3 `which pytest` tests -v -k 'not _cuda' --ignore=tests/test_onnx/test_zoo_models.py --ignore=tests/test_inference_engine

or

gdb python3
$ run /path/to/pytest tests -v -k 'not _cuda' --ignore=tests/test_onnx/test_zoo_models.py --ignore=tests/test_inference_engine

Replies: 2 comments

Comment options

usstq
Dec 7, 2021
Maintainer Author

You must be logged in to vote
0 replies
Comment options

usstq
Dec 29, 2021
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by usstq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
1 participant