Repository: maven-surefire
Updated Branches:
  refs/heads/master ec31e6291 -> 0f690b780


[SUREFIRE-850] Document how to run TestNG & JUnit 4 tests


Project: http://git-wip-us.apache.org/repos/asf/maven-surefire/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-surefire/commit/0f690b78
Tree: http://git-wip-us.apache.org/repos/asf/maven-surefire/tree/0f690b78
Diff: http://git-wip-us.apache.org/repos/asf/maven-surefire/diff/0f690b78

Branch: refs/heads/master
Commit: 0f690b7809334e561c71c396232cfb446590dc28
Parents: ec31e62
Author: Tibor17 <tibo...@lycos.com>
Authored: Mon Jun 22 22:24:28 2015 +0200
Committer: Tibor17 <tibo...@lycos.com>
Committed: Mon Jun 22 22:24:28 2015 +0200

----------------------------------------------------------------------
 .../src/site/apt/examples/testng.apt.vm         | 24 ++++++++++++++++++++
 1 file changed, 24 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/0f690b78/maven-surefire-plugin/src/site/apt/examples/testng.apt.vm
----------------------------------------------------------------------
diff --git a/maven-surefire-plugin/src/site/apt/examples/testng.apt.vm 
b/maven-surefire-plugin/src/site/apt/examples/testng.apt.vm
index af48920..489771b 100644
--- a/maven-surefire-plugin/src/site/apt/examples/testng.apt.vm
+++ b/maven-surefire-plugin/src/site/apt/examples/testng.apt.vm
@@ -225,3 +225,27 @@ Using TestNG
   a separate test artifact <<<your-testng-listener-artifact>>> with 
scope=test, or in project test source code
   <<<src/test/java>>>. You can filter test artifacts by the parameter 
<<<dependenciesToScan>>> to load its classes
   in current ClassLoader of surefire-testng provider.
+
+* Running TestNG and JUnit Tests
+
+  TestNG 6.5.1 and higher provides support to run TestNG and JUnit 4.x in 
current Maven project. All you need
+  is to introduce TestNG and JUnit dependency in POM.
+
++---+
+<dependencies>
+  [...]
+  <dependency>
+    <groupId>org.testng</groupId>
+    <artifactId>testng</artifactId>
+    <version>6.9.4</version>
+    <scope>test</scope>
+  </dependency>
+  <dependency>
+    <groupId>junit</groupId>
+    <artifactId>junit</artifactId>
+    <version>4.10</version>
+    <scope>test</scope>
+  </dependency>
+  [...]
+</dependencies>
++---+

Reply via email to