On 05/11/2022 12:07, Mark Raynsford wrote:
Hello!

As the subject says: Is there a documented way to write tests for
plugins under JUnit 5? The only thing I've been able to find is the
takari testing project:

   https://github.com/takari/takari-plugin-testing-project

There seems to be some preliminary support there, but it's not in any
of the available releases and nobody seems to have touched the project
for almost a year.


One solution that I know of is the Integration Testing Framework Extension [1] by Karl Heinz Marbaise. The documentation says the project is in "an early state but already being useful and can be used for real testing".

From my own experience, I can confirm it's really usable and useful. I am using it to test my own Maven plugin for generating images from PlantUML sources [2]. See it's "test/" module for some examples.

HTH,


Maarten

[1] https://github.com/khmarbaise/maven-it-extension
[2] https://github.com/mthmulders/puml-maven-plugin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to