I do not mean the bug that Basil explained in https://github.com/jenkinsci/plugin-pom/releases/tag/plugin-4.40 <https://github.com/jenkinsci/plugin-pom/releases/tag/plugin-4.40> This has been fixed already in IntelliJ.
IntelliJ now correctly runs the integration tests with an argLine like: <argLine>-Djava.awt.headless=true -Xmx1024m -Djenkins.test.timeout=1000 --add-opens java.base/sun.reflect.annotation=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.util.concurrent=ALL-UNNAMED</argLine> The problem is, that the argLine seems to be used for `Run With` only but not for `Debug With`. > Am 19.09.2022 um 16:32 schrieb Alex Earl <[email protected]>: > > Hi Ullrich, > > There is a known bug in IntelliJ, check out this post on Stackoverflow for > the workaround. > > https://stackoverflow.com/questions/24115142/intellij-error-when-running-unit-test-could-not-find-or-load-main-class-suref > > <https://stackoverflow.com/questions/24115142/intellij-error-when-running-unit-test-could-not-find-or-load-main-class-suref> > > Regards, > > Alex > > On Mon, Sep 19, 2022 at 2:54 AM Ullrich Hafner <[email protected] > <mailto:[email protected]>> wrote: > I recently switched my development to Java 17 and most things work flawlessly > now. > > One thing that I can’t get to work is debugging of integration tests in > IntelliJ. It seems that the argLine command (that opens Java modules) is not > sent to the debugging process. > However, the same tests run correctly when I am simply running the tests in > IntelliJ (without debugger). Is there an additional option one can set in > IntelliJ for the debugger? Or is this a bug in IntelliJ (I did not find > something existing in their issue tracker)? I am using IntelliJ 2022.2.2 RC. > > (I checked the option to pass the Arline to the run tests process) > > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:jenkinsci-dev%[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-dev/F4A29762-4EC8-471A-A8EA-626A677AB5C3%40gmail.com > > <https://groups.google.com/d/msgid/jenkinsci-dev/F4A29762-4EC8-471A-A8EA-626A677AB5C3%40gmail.com>. > > > -- > Website: http://earl-of-code.com <http://earl-of-code.com/> > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-dev/CAPiUgVesoLr%2BmteK1J4vq9GCL7TGx3yC57tr5JkEWi6qB1YAhw%40mail.gmail.com > > <https://groups.google.com/d/msgid/jenkinsci-dev/CAPiUgVesoLr%2BmteK1J4vq9GCL7TGx3yC57tr5JkEWi6qB1YAhw%40mail.gmail.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/6B1CCF4B-C11D-40F0-8AAB-E4A267573775%40gmail.com.
