How to unit test ModuleLevelBuilder/BuilderService


Hi, we have our implementation of MuduleLevelBuilder for Gosu Language (it is interoperable with Java, and we may need to compile classes when Java code was changed). And we would like to add unit tests for ensuring our implementation works as we expect.
Problem is I wasn't able to find out any obvious examples of this how to unit test Builders or BuilderServices.
Any suggestions?


You can looks how its done for our ResourcesBuilder in ResourceCopyingTest. Unfortunately the required test classes aren't published as proper Maven artifacts yet, I've created an issue about that. Until it's fixed you can simply copy JpsBuildTestCase and other required classes to your project.


Yeah, this seems to do a trick :-)

Thank you


Please sign in to leave a comment.