1. Create test app using "tns test init". 2. Build ios/android application. If you unpackage the package you will notice that unit tests are included in it. https://github.com/NativeScript/nativescript-cli/issues/887