These slides contain a basic workshop to understand the tools offered by IntelliJ to check the code coverage and cyclomatic complexity.
The course code is available from here https://github.com/srbarrios/codecoverage-workshop