title: How do I run JUnit tests from inside my java application?
body: <p>Is it possible to run JUnit tests from inside my java application?</p>
  
  <p>Are there test frameworks I can use (such as JUnit.jar?), or am I force to find the test files, invoke the methods and track the exceptions myself?</p>
  
  <p>The reason why I am asking is my application requires a lot of work to start launch (lots of dependencies and configurations, etc) and using an external testing tool (like JUnit Ant task) would require a lot of work to set up.</p>
  
  <p>It is easier to start the application and then inside the application run my tests.</p>
  
  <p><strong>Is there an easy test framework that runs tests and output results from inside a java application or am I forced to write my own framework?</strong></p>