Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij error - test framework quit unexpectedly intellij

I have been trying to run junit test but facing this issue constantly. I tried to look for answers on the internet but nothing helped.

enter image description here]1

enter image description here

like image 210
user1298426 Avatar asked Jul 04 '20 18:07

user1298426


People also ask

How do I install a test package in IntelliJ?

Add a new testIn your production code in the editor, place the caret at the class for which you want to create a test, press Alt+Enter , and select Create Test. In the Create Test dialog, select the library that you want to use. If you don't have the necessary library yet, you will be prompted to download it.

How do I not run a test in IntelliJ?

to toggle the Skip tests mode. On the Runner page, select Skip tests and click OK. IntelliJ IDEA de-activates the test goal under the Lifecycle node. The appropriate message notifying that tests are skipped is displayed in the Run tool window when you execute other goals.


2 Answers

If there is an error e.g.

"CommandLineWrapper is ill-suited for launching apps on Java 9+..."

Then, try the following workaround in IntelliJ IDEA:

Run -> Edit configurations -> select the failed running config -> Shorten command line: @argfile (Java 9+) -> OK

like image 185
Murat Yıldız Avatar answered Oct 19 '22 20:10

Murat Yıldız


For IntelliJ 2019 and above go to :
Settings-> Build,Execution,Deployment -> Build Tools -> Maven -> Running Tests and Uncheck argLine

like image 3
Benoy Prakash Avatar answered Oct 19 '22 19:10

Benoy Prakash