Getting started with Maven plugin testing -


I'm writing a very simple Maven plugin, and based on the part I've lost with the testing part, get the same things There are several different tools to do, which documents look old ... I am getting resources like this, and put a look at the "core" plugin, but it is still very vague for me.

As it does not seem to be a solution, I am asking for my personal experience here.

I do not have much in the page which is very complete and it really depends on those tests

But since you are asking for practical feedback, then my recommendation would be to write both unit tests and integration tests, which is extremely important later when plugins (if you want to leave something , Do not skip the integration test).

For unit tests, use this. Check the current plugin like Maven-compiler-plugin (see).

For integration tests, I recommend using I / and. They are similar but there are minor differences, so that you can choose one on the other on the basis of situation. See for details.

Also see


Comments