Following there is a quick reference of how to do it for a sample library project called AndroidLibrary and its corresponding test project AndroidLibraryTest.
|Create library project|
|Set properties to indicate it is a Library|
|Create test project and set the properties to reference the library|
|Set the Target package to this same test project|
|Run the tests|