hi all,
i m trying to run my tests using maven2 and testNG
i followed instructions at   http://testng.org/doc/maven.html

here's my pom

<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/maven-v4_0_0.xsd";>
   <modelVersion>4.0.0</modelVersion>
   <groupId>ejbJ2ME</groupId>
   <artifactId>ejbJ2ME</artifactId>
   <packaging>ejb</packaging>
   <version>1.0-SNAPSHOT</version>
   <name>ejbJ2ME</name>
   <url>http://maven.apache.org</url>
   <dependencies>
       <dependency>
           <groupId>junit</groupId>
           <artifactId>junit</artifactId>
           <version>3.8.1</version>
           <scope>test</scope>
       </dependency>
       <dependency>
           <groupId>org.testng</groupId>
           <artifactId>testng</artifactId>
           <version>4.7</version>
           <scope>test</scope>
           <classifier>jdk15</classifier>
       </dependency>
       <dependency>
           <groupId>jboss</groupId>
           <artifactId>ejb3-persistence</artifactId>
           <version>rc9-fd</version>
       </dependency>
       <dependency>
           <groupId>jboss</groupId>
           <artifactId>ejb3-persistence</artifactId>
           <version>rc9-fd</version>
       </dependency>
       <dependency>
                   <groupId>j2meCore</groupId>
                   <artifactId>J2MECore</artifactId>
                   <version>1.0-SNAPSHOT</version>
              </dependency>


   </dependencies>
   <build>
       <testSourceDirectory>src/test</testSourceDirectory>
               <testResources>
                     <testResource>
                       <directory>src/test/resources</directory>
                           <includes>
                                 <include>*.*</include>
                           </includes>
               </testResource>
         </testResources>
       <pluginManagement>
           <plugins>
               <plugin>
                   <groupId>org.apache.maven.plugins</groupId>
                   <artifactId>maven-compiler-plugin</artifactId>
                   <configuration>
                       <source>1.5</source>
                       <target>1.5</target>
                   </configuration>
               </plugin>
               <plugin>
                   <groupId>org.apache.maven.plugins</groupId>
                   <artifactId>maven-surefire-plugin</artifactId>
                   <version>2.8-SNAPSHOT</version>
                   <configuration>
                        <configuration>
                                 <groups>perftest</groups>
                           </configuration>
                   </configuration>
               </plugin>
           </plugins>
       </pluginManagement>
   </build>
   <pluginRepositories>
       <pluginRepository>
           <id>tapestry.javaforge</id>
           <url>http://howardlewisship.com/repository</url>
       </pluginRepository>
   </pluginRepositories>
</project>



i have 1 test class that belongs to 'ejb3' group, but it is getting executed
anyway......

could anyone help ?

thanks in advance and regards
marco

Reply via email to