You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by fg...@apache.org on 2006/09/04 22:53:01 UTC
svn commit: r440185 - in /maven/plugins/trunk/maven-surefire-plugin/src/it:
pom.xml test1/ test2/ test3/ test4/ test5/ test6/ test8/ test8/pom.xml
test8/src/ test8/src/test/ test8/src/test/java/
test8/src/test/java/TestNGTest.java
Author: fgiust
Date: Mon Sep 4 13:53:00 2006
New Revision: 440185
URL: http://svn.apache.org/viewvc?view=rev&rev=440185
Log:
add a new IT with a TestNG 5.1 dependency (now that the dependency has been updated test projects that depends on 5.0.1 doesn't work anymore but 5.1 do)
Added:
maven/plugins/trunk/maven-surefire-plugin/src/it/test8/
maven/plugins/trunk/maven-surefire-plugin/src/it/test8/pom.xml (with props)
maven/plugins/trunk/maven-surefire-plugin/src/it/test8/src/
maven/plugins/trunk/maven-surefire-plugin/src/it/test8/src/test/
maven/plugins/trunk/maven-surefire-plugin/src/it/test8/src/test/java/
maven/plugins/trunk/maven-surefire-plugin/src/it/test8/src/test/java/TestNGTest.java (with props)
Modified:
maven/plugins/trunk/maven-surefire-plugin/src/it/pom.xml
maven/plugins/trunk/maven-surefire-plugin/src/it/test1/ (props changed)
maven/plugins/trunk/maven-surefire-plugin/src/it/test2/ (props changed)
maven/plugins/trunk/maven-surefire-plugin/src/it/test3/ (props changed)
maven/plugins/trunk/maven-surefire-plugin/src/it/test4/ (props changed)
maven/plugins/trunk/maven-surefire-plugin/src/it/test5/ (props changed)
maven/plugins/trunk/maven-surefire-plugin/src/it/test6/ (props changed)
Modified: maven/plugins/trunk/maven-surefire-plugin/src/it/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-surefire-plugin/src/it/pom.xml?view=diff&rev=440185&r1=440184&r2=440185
==============================================================================
--- maven/plugins/trunk/maven-surefire-plugin/src/it/pom.xml (original)
+++ maven/plugins/trunk/maven-surefire-plugin/src/it/pom.xml Mon Sep 4 13:53:00 2006
@@ -17,6 +17,7 @@
<module>test4</module>
<module>test5</module>
<module>test6</module>
+ <module>test7</module>
</modules>
</project>
Propchange: maven/plugins/trunk/maven-surefire-plugin/src/it/test1/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon Sep 4 13:53:00 2006
@@ -0,0 +1 @@
+target
Propchange: maven/plugins/trunk/maven-surefire-plugin/src/it/test2/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon Sep 4 13:53:00 2006
@@ -0,0 +1 @@
+target
Propchange: maven/plugins/trunk/maven-surefire-plugin/src/it/test3/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon Sep 4 13:53:00 2006
@@ -0,0 +1 @@
+target
Propchange: maven/plugins/trunk/maven-surefire-plugin/src/it/test4/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon Sep 4 13:53:00 2006
@@ -0,0 +1,2 @@
+null
+target
Propchange: maven/plugins/trunk/maven-surefire-plugin/src/it/test5/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon Sep 4 13:53:00 2006
@@ -0,0 +1 @@
+target
Propchange: maven/plugins/trunk/maven-surefire-plugin/src/it/test6/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon Sep 4 13:53:00 2006
@@ -0,0 +1 @@
+target
Added: maven/plugins/trunk/maven-surefire-plugin/src/it/test8/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-surefire-plugin/src/it/test8/pom.xml?view=auto&rev=440185
==============================================================================
--- maven/plugins/trunk/maven-surefire-plugin/src/it/test8/pom.xml (added)
+++ maven/plugins/trunk/maven-surefire-plugin/src/it/test8/pom.xml Mon Sep 4 13:53:00 2006
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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>org.apache.maven.plugins.surefire</groupId>
+ <artifactId>test8</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <name>TestNG 5.1 tests</name>
+ <description>Tests TestNG 5.1 dependency</description>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.testng</groupId>
+ <artifactId>testng</artifactId>
+ <version>5.1</version>
+ <classifier>jdk15</classifier>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <groups>functional</groups>
+ <threadCount>3</threadCount>
+ <parallel>true</parallel>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
Propchange: maven/plugins/trunk/maven-surefire-plugin/src/it/test8/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-surefire-plugin/src/it/test8/pom.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: maven/plugins/trunk/maven-surefire-plugin/src/it/test8/src/test/java/TestNGTest.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-surefire-plugin/src/it/test8/src/test/java/TestNGTest.java?view=auto&rev=440185
==============================================================================
--- maven/plugins/trunk/maven-surefire-plugin/src/it/test8/src/test/java/TestNGTest.java (added)
+++ maven/plugins/trunk/maven-surefire-plugin/src/it/test8/src/test/java/TestNGTest.java Mon Sep 4 13:53:00 2006
@@ -0,0 +1,52 @@
+import org.testng.annotations.AfterSuite;
+import org.testng.annotations.BeforeClass;
+import org.testng.annotations.Test;
+
+
+/**
+ * Tests grouping/threading/parallel functionality of TestNG.
+ *
+ * @author jkuhnert
+ */
+public class TestNGTest {
+
+ static int m_testCount = 0;
+
+ /**
+ * Sets up testObject
+ */
+ @BeforeClass(groups = "functional")
+ public void configureTest()
+ {
+ testObject = new Object();
+ }
+
+ @AfterSuite(alwaysRun = true, groups = "functional")
+ public void check_Test_Count()
+ {
+ System.out.println("check_Test_Count(): " + m_testCount);
+
+ assert m_testCount == 3 : "Expected 3 tests to be run but local count was " + m_testCount;
+ }
+
+ Object testObject;
+
+ /**
+ * Tests reporting an error
+ */
+ @Test(groups = {"functional", "notincluded"})
+ public void isTestObjectNull()
+ {
+ m_testCount++;
+ assert testObject != null : "testObject is null";
+ }
+
+ /**
+ * Sample method that shouldn't be run by test suite.
+ */
+ @Test(groups = "notincluded")
+ public void shouldNotRun()
+ {
+ assert false == true : "Group specified by test shouldnt be run.";
+ }
+}
\ No newline at end of file
Propchange: maven/plugins/trunk/maven-surefire-plugin/src/it/test8/src/test/java/TestNGTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-surefire-plugin/src/it/test8/src/test/java/TestNGTest.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: maven/plugins/trunk/maven-surefire-plugin/src/it/test8/src/test/java/TestNGTest.java
------------------------------------------------------------------------------
svn:mime-type = text/plain