We can use filtered testResources JUnit-tests which are usually executed by the Maven certification plugin. That is, palm has a section
How can I run such a junket test in a debugger? If I execute the test in eclipse, tests fail to filter the test resources, the tests fail. If filtered test resources will be written somewhere in the target directory, then I can use it as an additional source path only - but it is not. If I try to get into the eclipse with debug AS / Maven test, the build does not stop in breakpoints. Any other ideas out there?
There are several options first you specify the maven.surefire.debug command line Can run tests from. The exact tests per set are run in a fork JVM, which means that if you debug the Mewen process, then you will not get any stop in test breakpoints. This is probably what you are seeing now also see
So I would advise to configure my project within the IDE as a Maven project. If the project is configured as a meaven project, resource filtering will be done automatically before running the test. How it works at least in the Idea, and I think the eclipse is established with the correct Maven plugins.
You can also run a Maven build from the command line and manually enter the target / test sections directory in your IDE configuration Works, but a little drum.
Comments
Post a Comment