If you try running the unit tests, but you are missing a C library required to build a python module in the venv, you can continue building with
python tools/install_venv.py
Code coverage can be generated using:
./run_tests.sh -c
Which will generate a report in keystone/covhtml/. An example one is posted here: