title: Running caliper from eclipse in maven's test scope
body: <p>I have a Java project in Eclipse, with JUnit tests in my <code>src/test</code> directory.  I've also added a class to my tests with Caliper microbenchmarks, and I'd like to be able to run these tests from within Eclipse.</p>
  
  <p>As the Caliper code is test code, I've added Caliper as a dependency in Maven in <code>test</code> scope.  That makes it show up in the classpath when I run JUnit tests, but I can't see a way to run an arbitrary class with test dependencies in the classpath.  What I tried doing was adding a new Run Configuration for a Java Application, thinking I could launch <code>CaliperMain</code> with the right class as a parameter, but the Caliper jar is not on the classpath and I can't see how to add it.</p>
  
  <p>I don't want to move my benchmark code and dependency into the <code>main</code> scope, as it's test code!  It seems seriously overkill to move it into a completely separate project.</p>