BDD- Behavior Driven Development
You define the working requirements of the software as automated tests.
Another term I enjoy using is executable specification that cannot be out of date if it passes
They initially fail as there is no code. The metric value starts at zero out of (say) five, so it is at 0%.
You write the code and they pass. The metric goes ...