Skip to content

Ambiguous questions on tests

Devrath edited this page Oct 23, 2023 · 1 revision

github-header-image (2)

Will writing the test slow the coding cycle

  • In the short term, It will slow us down and in the long term, it will make coding faster in maintaining the code.
  • Since setting up the test suite is time-consuming.
  • Maintaining the code becomes a lot easier.
  • We can run hundreds of test cases instantly without a delay.

When to write which types of tests

  • We need to structure our code in such a way that business logic has pure Java/kotlin code and does not involve Android dependencies. If this is organized in this way we can use J-unit tests for this purpose.
  • If the Android framework is involved, we might need instrumentation tests that require a device or an emulator.