What is block testing & Unit Testing?
What is the difference between Unit Testing and Block Testing?
I don't think block testing is a commonly accepted term. What you are probably referring to is block coverage. Unit testing is a TYPE of testing, where the smallest 'units' in an application are tested in isolation. This often means testing individual methods in a class, with mocked or stubbed external dependencies.
One level higher than unit testing is integration testing, which is meant to test the interaction between different groups of code together. This can be relatively shallow by just testing a combination of several classes, or it can be broader in the sense that you store data in a running database. In any type of test, you might be interested in how much of a certain section of code is covered by any type of test. The simplest form is line coverage where you measure the percentage of code lines that have been executed after all tests were run. This example here shows how block coverage works: https://stackoverflow.com/questions/35844439/what-is-the-difference-between-block-coverage-and-branch-coverage You can measure the coverage for both unit and integration tests.