Repository: maven-surefire Updated Branches: refs/heads/master 0a492b1a8 -> ec31e6291
[SUREFIRE-826] maven-surefire-plugin does not add its own plugin dependencies to the classpath Project: http://git-wip-us.apache.org/repos/asf/maven-surefire/repo Commit: http://git-wip-us.apache.org/repos/asf/maven-surefire/commit/ec31e629 Tree: http://git-wip-us.apache.org/repos/asf/maven-surefire/tree/ec31e629 Diff: http://git-wip-us.apache.org/repos/asf/maven-surefire/diff/ec31e629 Branch: refs/heads/master Commit: ec31e6291a65b21772c693a70fa92603a1604ffb Parents: 0a492b1 Author: Tibor17 <tibo...@lycos.com> Authored: Sun Jun 21 23:26:45 2015 +0200 Committer: Tibor17 <tibo...@lycos.com> Committed: Sun Jun 21 23:26:45 2015 +0200 ---------------------------------------------------------------------- .../src/site/apt/examples/junit.apt.vm | 19 +++++++++++++++++++ .../src/site/apt/examples/testng.apt.vm | 16 ++++++++++++++++ 2 files changed, 35 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/ec31e629/maven-surefire-plugin/src/site/apt/examples/junit.apt.vm ---------------------------------------------------------------------- diff --git a/maven-surefire-plugin/src/site/apt/examples/junit.apt.vm b/maven-surefire-plugin/src/site/apt/examples/junit.apt.vm index 6473f16..266293f 100644 --- a/maven-surefire-plugin/src/site/apt/examples/junit.apt.vm +++ b/maven-surefire-plugin/src/site/apt/examples/junit.apt.vm @@ -156,6 +156,17 @@ else You can configure multiple custom listeners like this: +---+ +<dependencies> +[...] + <dependency> + <groupId>your-junit-listener-artifact-groupid</groupId> + <artifactId>your-junit-listener-artifact-artifactid</artifactId> + <version>your-junit-listener-artifact-version</version> + <scope>test</scope> + </dependency> +[...] +</dependencies> +[...] <plugins> [...] <plugin> @@ -174,6 +185,14 @@ else </plugins> +---+ + For more information on JUnit, see the {{{http://www.junit.org}JUnit web site}}. + + You can implement JUnit listener interface <<<org.junit.runner.notification.RunListener>>> in + a separate test artifact <<<your-junit-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-junit* providers. + + * Using a Security Manager (JUnit3 only) As long as <<<forkCount>>> is not 0 and you use JUnit3, you can run your tests with a Java security manager enabled. http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/ec31e629/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 8bdd6bb..af48920 100644 --- a/maven-surefire-plugin/src/site/apt/examples/testng.apt.vm +++ b/maven-surefire-plugin/src/site/apt/examples/testng.apt.vm @@ -181,6 +181,17 @@ Using TestNG You can configure multiple custom listeners like this: +---+ +<dependencies> +[...] + <dependency> + <groupId>your-testng-listener-artifact-groupid</groupId> + <artifactId>your-testng-listener-artifact-artifactid</artifactId> + <version>your-testng-listener-artifact-version</version> + <scope>test</scope> + </dependency> +[...] +</dependencies> +[...] </plugins> [...] <plugin> @@ -209,3 +220,8 @@ Using TestNG +---+ For more information on TestNG, see the {{{http://www.testng.org}TestNG web site}}. + + You can implement TestNG listener interface <<<org.testng.ITestListener>>> in + 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.