Skip to content

Latest commit

 

History

History
28 lines (15 loc) · 1.09 KB

README.md

File metadata and controls

28 lines (15 loc) · 1.09 KB

AndroidUnitTests

Android unit tests explained: instrumented and non instrumented unit tests. See blog posts for more info:

The first post blog post covers:

  • JsonParserTest: you'll find it in the 'androidTest' (instrumented) and 'test' (local, non instrumented unit test) folders.
  • FileSerializerTest: non-instrumented test that uses file operations without a context
  • SharedPreferencesTest: instrumented test that uses and Android context to work with shared preferences

The second post blog post covers:

  • AssetTest: you'll find it in the 'androidTest' (instrumented) and 'test' (local, non instrumented unit test) folders.

To run the instrumented tests use:

./gradlew connectedCheck

For the local or non-instrumented tests:

./gradlew test

###License (Public domain)

This is free and unencumbered software released into the public domain. 
For more information, please refer to <http://unlicense.org/>