I want to be able to run all tests in a project programmatically. I know Eclipse has a \"Run as JUnit test\" configuration which somehow grabs all the tests in a project and run
You can do this fairly easily from within maven using the surefire plugin: I usually clean/compile/install my projects from the command line before comparing them for eclipse usage (mvn eclipse:clean eclipse:eclipse
) and you can define a test suite in your pom which lists all the tests you want to run en masse every time you run mvn install
. You're not calling them programatically, exactly, but you can certainly call them en masse.