Testing in Android
Types of Testing : Unit Testing UI Testing Integration Test Unit Testing Used to test the business login of our application These tests are very fast and least expensive tests we can write because it runs on JVM The most commonly used tools for Unit testing are JUnit and Mockito Integration Testing Used to test the android components like Activity, Fragments, service, Context, Intent etc These run on JVM as well like the Unit Test and not on emulator or real devcie The most common tool for integration testing is Roboelectric UI Testing Used to test our User Interface like Views, Buttons, EditText, TextView etc These tests run on Emulator or Real Device The most common tool for UI testing is Espresso and UI Automator Suppose i create a class called Validation and create a method email() to check for the entered email pattern. class Validation { private val EMAIL_PATTERN = " [a-zA-Z0-9._-]+@[a-z]+ \\ .+[a-z]+ " fun email (email : String) : Boolean { return email...