Unit testing a few modules

I've got a project which has about 40 modules, grouped in module groups. Is there a way to set up a Junit run configuration so that I can include more than one at a time? I've seen the "across module dependencies" setting, but unfortunately that tends to cascade into too many projects resulting in a 5 or 10 minute build.

My project is based on a maven hierarchy that looks roughly like:

Project A\core
Project A\parent
Project A\integration-test
Project A\webapp
Project B\core
Project B\parent
Project B\integration-test
Project B\webapp
Project Z\core
Project Z\parent
Project Z\integration-test
Project Z\webapp

I'd love to be able to set it up where I could run everything in Project A and B or even just the everything in Project A. I had been hoping that maybe we'd be able to run all tests in a certain scope or a certain module group, but unfortunately there doesn't seem to be a way to set that up.

Does anyone have any ideas?


Please sign in to leave a comment.