When you are working on a project, you normally know what code needs testing. For this example
I will show a way to figure out what is missing tests. Just keep in mind that not all of your
code needs or can be tested (e.g. in Java OutOfMemoryError
or IOException
blocks can be tricky
to test).
When running your code with tests, some tools keep track of what portion of the code was actually executed with the tests.