maven-surefire-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ed Abshire <eabsh...@cybersource.com>
Subject Question concerning executing tests from a parent POM.Xml file
Date Wed, 08 Dec 2010 22:35:53 GMT
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="http://maven.apache.org/POM/4.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
                      http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>cybs.qa.framework</groupId>
  <version>2.0</version>
  <artifactId>QA-Automation</artifactId>
  <packaging>pom</packaging>
  <modules>
    <module>businessobjects</module>
    <module>framework</module>
                <module>utilities</module>
                <module>uimodel</module>
                <module>keywords</module>
                <module>fixtures</module>
                <module>unittests</module>
                <module>tests</module>
  </modules>

<dependencies>
            <dependency>
                        <groupId>org.testng</groupId>
                        <artifactId>testng</artifactId>
                        <version>5.14</version>
                        <scope>test</scope>
            </dependency>
  </dependencies>

            <build>
                        <pluginManagement>
                                    <plugins>
                                                <plugin>
                                                            <groupId>org.apache.maven.plugins</groupId>
                                                            <artifactId>maven-surefire-plugin</artifactId>
                                                            <version>2.6</version>
                                                            <configuration>
                                                                        <workingDirectory>${basedir}\Tests</workingDirectory>
                                                                        <testClassesDirectory>target/classes</testClassesDirectory>
                                                                        <suiteXmlFiles>
                                                                                    <suiteXmlFile>tests\genericTests.xml</suiteXmlFile>
                                                                        </suiteXmlFiles>
                                                            </configuration>
                                                </plugin>
                                    </plugins>
                        </pluginManagement>
            </build>
</project>
_________________________________________
Ed Abshire

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