title: How to read properties from Integration Test in IntelliJ
body: <p>My project structure looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/LYUbx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LYUbx.png" alt="Project Structure in IntelliJ"></a></p>
  
  <p>I have a <code>catalina.properties</code> in <code>src/testIntegration/resources</code> that gets output to <code>build/resources/testIntegration</code> folder. Running integration tests in Gradle from command line is fine, but running integration tests in IntelliJ gives me issue. After some playing around with the file locations, I found that IntelliJ is always looking for test resource file in <code>build/resources/test</code> folder. If I placed my test resources file in <code>build/resources/test</code> manually, then test runs smoothly. </p>
  
  <p>Is there a way to configure IntelliJ to look for resources in <code>build/resources/testIntegration</code> when I'm running tests in <code>src/testIntegration/java</code>?</p>
  
  <p><strong>EDIT</strong>:</p>
  
  <p>I also found that my test in <code>src/testIntegration/java</code> gets compiled to <code>build/classes/test</code> when I run in IntelliJ, which explains why it's looking for resources in <code>build/resources/test</code> though, but it should really be outputting to <code>build/classes/testIntegration</code></p>