IntelliJ 2021.1 creates .out files with stdout content from JUnit runs?
已回答
I discovered a new "feature" that I haven't seen before:
I run a JUnit test ... and it seems that all output that the code under tests writes to stdout ... is written to the FILE SYSTEM by Intellij?
Meaning: instead of the "Run" window within Intellij, git shows me a new file some/folder/manager.out (where some/folder roughly match the production code root directory).
Any idea why exactly this is happening, and how I get back to the "old" behavior?
(IntelliJ writing stuff into the production file system is like a NO GO, what the heck?!)
请先登录再写评论。
What Run/Debug Configuration do you use?
Have you configured to write the console output to file on the Logs tab? Does it happen for a newly created configuration?
I deleted the configurations ... same thing. Now I figured: User error
One of the production classes I am using in my production code under testredirects its tracing output to the file system.
I never saw that before because I never used that class before.
And the people owning that class dont care about writing unit tests.
Thanks for the quick comeback though!