title: Java Test Runner in Visual Studio Code
body: <p>I recently started to use Visual Studio Code for java development. I am having some problems with the test runner. </p>
  
  <p>I can run main() in .java files without any issues, but the "run test" option does not show up in my JUnit test file. Also, no files show up in the Test runner side-bar. </p>
  
  <p><a href="https://i.stack.imgur.com/ozCjc.png" rel="nofollow noreferrer">Screenshot 1</a>
  <a href="https://i.stack.imgur.com/pf3Mn.png" rel="nofollow noreferrer">Screenshot 2</a></p>
  
  <p>This is the JUnit test file for a Student class.</p>
  
  <pre><code>import static org.junit.Assert.*;
  import org.junit.After;
  import org.junit.AfterClass;
  import org.junit.Before;
  import org.junit.BeforeClass;
  import org.junit.Test;
  import org.junit.Ignore;
  
  class Student_test {
      @Test 
      public void testGetName() {
          Student john = "John Deer"; 
          String expected = "John Deer";
          String result = john.getName();
          assertEquals(result, expected); 
      }
   }
  </code></pre>
  
  <p>I use the Java Test Runner extension in VS Code:
  <a href="https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-test" rel="nofollow noreferrer">https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-test</a></p>
  
  <p>Does anyone know how I could get the test file to show the "run test" option in the file, or how I could find it in the side-bar? </p>