Skip to content

An Android Application Repo Template with unit test support!

License

Notifications You must be signed in to change notification settings

lernerb/StarterDroid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StarterDroid

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

For adding unit test support to your own project

If you are having any issue direct yourself to http://tools.android.com/tech-docs/unit-testing-support

  1. Add the following to dependencies:
 
    testCompile 'junit:junit:4.12'
    testCompile "org.mockito:mockito-core:1.9.5"
  1. Create a /test/java/... package to place your tests, matching your /src/main directory

  2. Open the ‘build Variants’ at the test location and change it to ‘unit test’

  3. Run the following command line ./gradlew test --continue

  4. Look at the reports @ /<ROOTDIRECTORY>/app/build/reports/tests/<APPFLAVOR>/index.html

About

An Android Application Repo Template with unit test support!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages