Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit test with IntelliJ problem #7

Closed
etourdot opened this issue Oct 19, 2015 · 3 comments
Closed

Unit test with IntelliJ problem #7

etourdot opened this issue Oct 19, 2015 · 3 comments
Labels

Comments

@etourdot
Copy link

Hello,

I encounter a problem to execute unitary test with IntelliJ since v17 of vertx-ext-parent due to a message "Erreur : impossible de trouver ou charger la classe principale @{surefireArgLine}".
With v15 of vertx-ext-parent, i was able to execute unit test in IntelliJ without problem.

console with v15:

D:\Java\jdk1.8.0_11\bin\java -ea -Dio.netty.leakDetectionLevel=PARANOID -Didea.launcher.port=7535 "-Didea.launcher.bin.path=D:\JetBrains\IntelliJ IDEA Community Edition 14.1\bin" -Dfile.encoding=windows-1252 -classpath "D:\JetBrains\IntelliJ IDEA Community Edition 14.1\lib\idea_rt.jar;...1\json-20090211.jar" com.intellij.rt.execution.application.AppMain com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 io.vertx.ext.marklogic.MarklogicClientWriteTest,write_single_xml_document
Starting test: MarklogicClientWriteTest#write_single_xml_document 

Process finished with exit code 0

console with v17:

D:\Java\jdk1.8.0_11\bin\java -ea -Dio.netty.leakDetectionLevel=PARANOID -server -Xmx1200M @{surefireArgLine} -Didea.launcher.port=7537 "-Didea.launcher.bin.path=D:\JetBrains\IntelliJ IDEA Community Edition 14.1\bin" -Dfile.encoding=windows-1252 -classpath "D:\JetBrains\IntelliJ IDEA Community Edition 14.1\lib\idea_rt.jar;D:\JetB...1\json-20090211.jar" com.intellij.rt.execution.application.AppMain com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 io.vertx.ext.marklogic.MarklogicClientWriteTest,write_single_xml_document
Erreur : impossible de trouver ou charger la classe principale @{surefireArgLine}

Process finished with exit code 1
@cescoffier
Copy link
Member

In intellij you need to go to "settings - build, execution, deployment - maven - Running Tests" and uncheck the argLine check box.

It's because intellij does not support (yet) the late binding variable injection from surefire.

@etourdot
Copy link
Author

It works !
Thanks a lot.

@bedla
Copy link

bedla commented Jun 19, 2020

There is issue https://youtrack.jetbrains.com/issue/IDEA-145991 you can vote for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

4 participants