A repo to start writing Android code with unit tests!
If you would like to run the tests in this repo, just type in your terminal
cd StarterDroid
./gradlew test --continue
You can view the output of the tests @ /StarterDroid/app/build/reports/tests/debug/index.html
If you are having any issue direct yourself to http://tools.android.com/tech-docs/unit-testing-support
- Add the following to dependencies:
testCompile 'junit:junit:4.12' testCompile "org.mockito:mockito-core:1.9.5"
-
Create a /test/java/... package to place your tests, matching your /src/main directory
-
Open the ‘build Variants’ at the test location and change it to ‘unit test’
-
Run the following command line
./gradlew test --continue
-
Look at the reports @
/<ROOTDIRECTORY>/app/build/reports/tests/<APPFLAVOR>/index.html