Unit test for Android Library project

In case you ran into problems with unit tests for your Android Library project that ended with this error message:

Test running failed: Unable to find instrumentation target package: my.library.project
Running testsEmpty test suite.

... make sure that in your AndroidManifest.xml you are referring to the actual application that uses you library and runs on emulator instead of the package of your library project: