title: how to create test class and folder from android studio?
body: <p>I want to build unit test from existing android project but the test folder and test class like <code>androidTest</code> and <code>test</code>  are <strong>deleted</strong>. Because this is existing project and I dont know why previous developer deleted them, so I need to create new test folder for this to work.</p>
  
  <p>I try add the libraries to my gradle like <a href="https://developer.android.com/training/testing/unit-testing/local-unit-tests.html#build" rel="noreferrer">this</a> : <br></p>
  
  <pre><code>// Required -- JUnit 4 framework
      testCompile 'junit:junit:4.12'
      // Optional -- Mockito framework
      testCompile 'org.mockito:mockito-core:1.10.19'
  </code></pre>
  
  <p>and create <code>test</code> folder and the test class inside <code>src</code> folder but still not works and I can't run the test.</p>
  
  <p>any idea what the correct steps to achieve this in android studio? since the <a href="https://developer.android.com/training/testing/unit-testing/local-unit-tests.html#build" rel="noreferrer">documentation</a> only showing how to add the test library and the test class but not where to place test folder or create new test folder.</p>