HubSpot / prettier-maven-plugin

Apache License 2.0
116 stars 23 forks source link

Add integration tests #59

Closed jhaber closed 2 years ago

jhaber commented 2 years ago

This PR adds some integration tests for the check mojo + write mojo, which should hopefully make it easier to make changes to this plugin with confidence

It also makes the project multi-module, so prettier-maven-plugin is now in a subdirectory and prettier-maven-plugin-integration-tests is a separate module. The integration tests run a Maven process and invoke the prettier-maven-plugin, so you currently need to run them in a reactor build together with the install goal in order for the tests to actually flex your local changes. There's probably a way to avoid needing to go through the local repo, but I gave up after trying a bunch of stuff