title: Running Unit and Integration Tests in IntelliJ
body: <p>I currently have two different sets of tests in my Java project:</p>
  
  <ul>
  <li>Unit tests</li>
  <li>Integration tests - these use Arquillian to run in a container</li>
  </ul>
  
  <p>I currently use Gradle as my build script and JetGradle to integrate with IntelliJ 12. In my Gradle build script I have to sets of test class paths:</p>
  
  <ul>
  <li><p>testCompile - This is the standard test configuration for unit tests in Gradle and maps to the test scope in IntelliJ.</p></li>
  <li><p>integrationTestCompile - This is a custom test configuration with the additional Arquillian dependencies used by the integration tests. This does not currently get mapped to a scope in IntelliJ</p></li>
  </ul>
  
  <p>Is there any way in IntelliJ to manage separate sets of test class paths one for unit tests and one for integration tests and use the integrated IntelliJ test runner to run one or the other?</p>
  
  <p>Currently I have worked round this by adding all test dependencies to the IntelliJ test scope but I would like to not have to include the integration dependencies when running unit tests.</p>
  
  <p>The only other solution I can find is to create a separate integration test module with it's own class path but this is not ideal.</p>