maven-surefire-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ed Abshire <>
Subject RE: Question concerning executing tests from a parent POM.Xml file
Date Fri, 10 Dec 2010 23:23:49 GMT
What we are trying to do is have an test automation framework and tools that users can write
tests against.

The tests directory is where the users create their tests, and that is what we can to be able
to execute.

For unit tests, I concurred and I will be moving those tests underneath their respective areas...

As for the steps 1 and 2, are there examples of this, I'm just now getting my feet wet in
the maven world.


From: Stephen Connolly []
Sent: Thursday, December 09, 2010 1:05 AM
Cc: Ed Abshire
Subject: Re: Question concerning executing tests from a parent POM.Xml file

Here is what it looks like you are trying to do:

"I am trying to execute the tests of a child module from within a POM project"

If that is the case then you need to:

1. bind an execution of surefire to the aggregator pom and have that execution not inherited.
2. ensure that the aggregator pom depends on all the child poms, and that the child poms do
not inherit from the aggregator pom (i.e. it cannot be a parent any more)

And then what it looks like you are trying to do will be done....


You really don't want to do that.

You are fighting the maven way.

Leave the tests for each module in that module

Put the tests of everything else in their own testing module that depends on the previous



On 8 December 2010 22:35, Ed Abshire <<>>
So I have the following directory structure:

-          QA

o   Businessobjects

o   Framework

o   Utilities

o   Uimodel

o   Keywords

o   Fixtures

o   Unittests

o   Tests

Under QA, I have a parent pom.xml that includes all the modules to build the projects underneath
the QA directory above as one project.

I am trying to set up surefire to execute tests from the tests directory using testing.

Is there a proper way of doing this?

<project xmlns=""


Ed Abshire

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message