Skip to content

arsalankhan994/unit-testing-step-by-step

Repository files navigation

unit-testing-step-by-step

  1. Use Truth Library
  2. Use @Test annotation
  3. Fields or Values Validations
  4. Test cases for Singleton class
  5. Test cases for Simple/ Non Singleton class
  6. Android Context inside test class
  7. Value Comparison using Context and ResId
  8. Use @Before and @After annotations
  9. Use Room Database ( insert, update and delete )
  10. Use @get:Rule
  11. Use Dagger Hilt for Room Database testing
  12. Use HiltAndroidRule