title: Running JUnit tests from Terminal
body: <p>I have some JUnit tests that are running in IntelliJ just fine. However, I need to run these same tests from the terminal. My problem is, no matter what I do, I get an error that says:</p>
  
  <pre><code>JUnit version 4.10
  Could not find class: com.myCompany.MyTests
  </code></pre>
  
  <p>I do not know why it is not working. In an attempt to run the unit tests from the command-line, I'm running the following:</p>
  
  <pre><code>java -cp /Applications/IntelliJ\ IDEA\ 13.app/lib/junit-4.10.jar org.junit.runner.JUnitCore com.myCompany.MyTests
  </code></pre>
  
  <p>However, the only thing I see is the error listed above. I keep running this command up and down my source directory. Yet, no matter what I can't get any tests to run from the command-line. Yet, they run just fine from within IntelliJ. How do I get my tests to run from the command-line in the same way that they run from within IntelliJ? Is there some way I can view the actual command(s) that IntelliJ runs when running JUnit?</p>
  
  <p>Thank you</p>