mvnDebug for the junit5-maven-consumer sample doesn't hit breakpoint
See original GitHub issueOne runs mvnDebug test
and as expected it waits for you to attache a debugger to port 8000.
You go ahead and do that - with a breakpoint set on line 26 of FirstTest.java and it does not land on the breakpoint.
I wasn’t expecting full integration with Intellij to be working, but this issue isn’t about that, it’s about a more basic use: Maven fully in charge of the test site invocation, and Intellij being asked to watch classes being instantiated and pertinent lines to be hit. It is missing them. Is Junit5 doing something with classloaders that 4.x wasn’t previously?
Issue Analytics
- State:
- Created 6 years ago
- Comments:15 (9 by maintainers)
Top Results From Across the Web
Remote debugging with mvnDebug, doesn't stop at breakpoint
While running the mvnDebug command, use -DforkMode=never . so your maven command will look like this: mvnDebug -DforkMode=never ...
Read more >Breakpoints don't work when debugging maven project?
I am trying to debug a unit test in a Maven project. Normally I would just set up a JUnit test configuration in...
Read more >JUnit 5 tutorial - Learn how to write unit tests - Vogella.com
It explains the creation of JUnit 5 tests with the Maven and Gradle build system. It demonstrates the usage of the Eclipse IDE...
Read more >2020 quarkus-fascicle-understanding-v1.pdf
The examples used in this fascicle are designed to be compiled with Java 11, to be built with Maven 3.6.x and to be...
Read more >Java | Learning Quest | Page 2 - WordPress.com
The earlier example that stores a list of customers would use the ... you can run Maven in debug mode using the mvnDebug...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
That’s probably a good idea.
@sormuras, I’m reopening this issue and assigning it to you – OK?
Closed again.