./configure --enable-code-coverage --disable-optimization make check make code-coverage-capture lcov --summary OpenSC-*-coverage.info This does not work well with Windows so on windows it should be disabled (WIP)