After I upgraded to IntelliJ 2021.1, test classes are not auto-compiling

Answered
0
6 comments

I had to explicitly run "mvn compiler:testCompile" for updating any changes to the test class

0
Avatar
Yaroslav Bedrov

Hello,

Could you please attach screenshot from "Settings/Preferences | Build... | Compiler". Also please attach screenshot with your Run Configuration.

0

Here are the 2 screenshots.

0
Avatar
Yaroslav Bedrov

Am I got you right that if you change test class and run "PlatformApps..." configuration then test classes aren't build and old code is used?

0

That's right, Junit test classes are not auto-compiling to pick the new changes, thus it's using the old code.

0
Avatar
Yaroslav Bedrov

Is it reproducible with some sample project example?

0

Please sign in to leave a comment.