For projects without a build tool, you can download JUnit directly through IntelliJ's project settings.
: Go to File > Project Structure ( Ctrl+Alt+Shift+S ). how to download and install junit in intellij
: Inside the tag, insert the JUnit 5 (Jupiter) dependency: For projects without a build tool, you can
org.junit.jupiter junit-jupiter 5.10.0 test Use code with caution. For projects without a build tool