F
F
foxiko2019-12-28 15:13:58
IntelliJ IDEA
foxiko, 2019-12-28 15:13:58

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.junitsays: 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

1 answer(s)
A
alfss, 2019-12-28
@alfss

Better start right away with gradle, there is no need to do this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question