title: How to specify test directory in Maven pom.xml
body: <p>Maven handles java unit tests well by defaulting to:</p>
  
  <pre><code>src/test/java
  </code></pre>
  
  <p>We're writing quite a few Groovy unit tests right now, and I'd like to find a way in Maven to specify a folder such as:</p>
  
  <pre><code>src/test/groovy
  </code></pre>
  
  <p>as a test folder. This would help us to import a Maven project into, say, IntelliJ, without additional setup.</p>
  
  <p>Someone mentioned this was possible, but I wasn't able to find a way searching the Maven docs, or SO. Does anyone know how to mark the directory in the pom?</p>
  
  <p>Thank you</p>
  
  <p>Update:  I am not asking how to run the tests in Maven! The tests are already running fine. I'm asking how to mark the directories as test directories in Maven.</p>