Question: When should you use the androidTest directory to store your test classes?

  1. when the tests consist only of unit tests.
  2. when the number of tests to run is large(500+).
  3. when the tests need to run on your local machine.
  4. when the tests need to run on real or virtual devices.

Answer: The correct answer of the above question is Option D:when the tests need to run on real or virtual devices.