Code Coverage - Warm-Up Questions
Mark each statement below as true or false. After the session, come back to this quiz and change any answers you feel are incorrect and add detail to your answers.
| True | False | ||
|---|---|---|---|
| 1 | Code coverage measures what proportion of lines of code are executed when you run your tests. | ||
| 2 | You should generally aim for 80% coverage accross your whole codebase. | ||
| 3 | Code without tests in your project is a liability and you should generate unit tests to cover it. | ||
| 4 | You should automatically prevent new code from being merged to the master branch if coverage is too low. | ||
| 5 | Lines of code that are covered will not contain bugs. | ||
| 6 | If may not be possible to achieve 100% coverage due to dead code. |