Answer the question
In order to leave comments, you need to log in
Why is JUnit not connecting to an IDEA project?
I'm trying to connect JUnit to the project, I follow numerous identical instructions:
Alt + Enter > Create test > select JUnit, click FIX, download.
It creates a class file but import org.junit
says: Unresolved reference .
Further, according to the instructions, I create a method with the @Test annotation, click Alt + Enter again, but add JUnit to classpath does not appear, unlike the screenshots from the tutorials, it only gives rename reference .
PS: I tried with both JUnit4 and Junit5. I want to solve without gradle. Need. Just. Run. Tests. Yes, I will learn gradle soon, but not now.
Here is an example of one of the instructions that I read:https://www.jetbrains.com/help/idea/configuring-te...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question