How do I create a test file so the following line ...
# intellij-plugins
k
How do I create a test file so the following line would work:
LocalFileSystem.getInstance().findFileByPathIfCached(fileName)
Now I use
Copy code
project.baseDir
                    .createChildDirectory(null, "src")
                    .createChildDirectory(null, "test")
                    .createChildDirectory(null, "java")
                    .createChildData(null, "JavaTestClass.java")
But it works only once 😞 Next time I run the test I get:
Copy code
java.io.IOException: '/private/var/folders/d6/232wh5350xz0fpbbtcz6yddr0000gn/T/unitTest_aame/src' already exists in VFS