Skip to content Skip to sidebar Skip to footer

Run Trace.py With Pytest

I'm trying to get coverage using trace.py when running pytest. I know that pytest has its own coverage plugin pytest-cov but restrictions (number of times each line is executed is

Solution 1:

Came across David's comment, so here's the answer that I used at that time:

python3.4 -m trace -c -m -C . <pytest_script_absolute_path> test_script.py

Post a Comment for "Run Trace.py With Pytest"