I am using Android Studio/IntelliJ
to build on an existing Android
project and would like to add some simple JUnit
unit tests. What is
For Android Studio 1.2+ setting up a project for JUnit is pretty simple try to follow along this tutorial:
This is the simplest part setting up a project for JUnit:
https://io2015codelabs.appspot.com/codelabs/android-studio-testing#1
Follow along the past link until "Running your tests"
Now if you want to integrate with intrumentation test follow along from here:
https://io2015codelabs.appspot.com/codelabs/android-studio-testing#6