Compile and run UnitTest for Java (or Scala) Application in Docker

Answered

Hi,

I know that you can remotely debug a Java application in Docker from Intellij but is there a way to compile and run the unit tests in a Docker container (Java or Scala) ?

Thanks

JF

 

3
11 comments

Hello,

Unfortunately there is no such a tool in current version of IntelliJ IDEA, but it is planned for 2020.1.

0

Hi,

Any update on this ? I tried with below and couldn't find a way to make this work (have remote debugging with IJ with the app running in docker container working, and would really like this functionality too - cmd-line mvn test cmd running in the container is the workaround for now)

IntelliJ IDEA 2020.1.2 (Community Edition)
Build #IC-201.7846.76, built on June 1, 2020
Non-Bundled Plugins: org.jetbrains.kotlin, Docker

Best regards and keep up the good work,

KL

0

Olga Klisho do you have a ticket for this feature in YouTrack?

0

the information you provide on this website has helped me tremendously. TV Series Jackets  Thanks for all of your time & work. 

0

Hello, the feature will be available through one EAP.

0

Olga Klisho do you have a ticket id so i can follow the progress?

1

Zoran Zaric,

There is the ticket, but unfortunately it's internal. I'll update the status here as soon as the feature becomes available.

0

thanks!

0

Hi Olga Klisho any update on this, very excited for this feature to be available.

0

Hello Angus Scott,

 

You may try the latest IntelliJ IDEA version: https://confluence.jetbrains.com/display/IDEADEV/IDEA+2020.2+latest+builds

And enabled the "run.targets" in "Tools | Internal actions | Experimental features..":

0

For those who didn't find "Tools | Internal actions" menu item:
https://jetbrains.org/intellij/sdk/docs/reference_guide/internal_actions/enabling_internal.html

And as I understood this experimental feature is not available under Windows cause I don't have ability to add New Managed Target.

0

Please sign in to leave a comment.