title: File not found when located in "Test Resources Root"
body: <p>I am new to IntelliJ IDEA and I am trying to use specific files for my unit tests, but it seems that these cannot be found. I have built a special project/module to "reduce" the error in a totally clean setting to make sure that I don't miss something, however, it still does not work.</p>
  
  <p>My file structure (as shown in the screenshot):
  .../test/jave/FooTest.java
  .../test/resources/test.txt</p>
  
  <p>Folder ".../test/resources" has been marked as "Test Resources Root". However, when the test runs, file could not be found.</p>
  
  <p><a href="https://i.stack.imgur.com/QdtzW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QdtzW.png" alt="Screenshot of error when running test in a reduced program"></a></p>
  
  <p>I suppose that marking the folder as "Test Resources Root" should add all its files in the path. Isn't this right? </p>
  
  <p>PS. I have seen <a href="https://stackoverflow.com/questions/25513788/intellij-cant-find-classpath-test-resource">this post</a> but even adding the folder as a dependency did not work.</p>