Skip to content

yairkukielka/AndroidUnitTests

Repository files navigation

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/>

About

Simple, instrumented and non instrumented Android unit tests. Blog post:

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages