Does Total test coverage includes the manage package test coverage ?
|Knowledge Article Number||000044631|
|Description||If you have Managed packages installed, sometimes you do see different test coverage results when you run test classes from UI, Force.com IDE and ANT|
|Resolution||When you run all test classes from UI then it will run the manage package code tests and that contributes to code coverage.
From IDE/ANT(METADATA API), you don't see this behavior, it only runs the test classes in your org namespace.
Via the Metadata Api, setting the deployOption "runAllTests" will run all tests for all classes including package classes.
For the force.com ide, this can be accomplished using the "Validate Deployment" feature during deploy.
For additional information please check Code Coverage document in our developer docs