Running surefire tests in parent project

597 views Asked by At

I have a Maven aggregator project like this:

/pom.xml /module-A/pom.xml

where in the /pom.xml, there is a

<modules> <module> submodules/functional </module> </modules>

In the parent project, I also have many classes and tests written. They properly packaged in to the artifact. However, when I run mvn test only the child module's tests are executed.

To be more specific. We are managing child modules using git submodule and it does not have any dependency on the parent module. I do not know any other way to refer to the submodules without involving a Maven repository.

I tried many ways to run them and none of them works. Is there a way to test source code in the parent module?

0

There are 0 answers