From 945e6bc0370de56f241e819178980140070587b3 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Sun, 20 Aug 2023 17:13:04 -0700 Subject: [PATCH] Cleaned up examples --- README.md | 4 ++-- examples/src/bld/java/com/example/ExamplesBuild.java | 11 +++++++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6d27bb4..ea15b98 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ To install, please refer to the [extensions documentation](https://github.com/ri To run the tests with TestNG, add the following to your build file: ```java -@BuildCommand(summary = "Run tests with TestNG") +@BuildCommand(summary = "Tests the project with TestNG") public void testng() throws Exception { new TestNgOperation() .fromProject(this) @@ -29,7 +29,7 @@ public void testng() throws Exception { You could also override the default `test` command: ```java -@BuildCommand(summary = "Run tests with TestNG") +@BuildCommand(summary = "Tests the project with TestNG") public void test throws Exception { new TestNgOperation() .fromProject(this) diff --git a/examples/src/bld/java/com/example/ExamplesBuild.java b/examples/src/bld/java/com/example/ExamplesBuild.java index 3fd6c70..dd5ca41 100644 --- a/examples/src/bld/java/com/example/ExamplesBuild.java +++ b/examples/src/bld/java/com/example/ExamplesBuild.java @@ -9,6 +9,13 @@ import java.util.List; import static rife.bld.dependencies.Repository.MAVEN_CENTRAL; import static rife.bld.dependencies.Scope.test; +/** + * Example build. + * + * + */ public class ExamplesBuild extends BaseProject { public ExamplesBuild() { pkg = "com.example"; @@ -23,8 +30,8 @@ public class ExamplesBuild extends BaseProject { new ExamplesBuild().start(args); } - @BuildCommand(summary = "Run tests with TestNG") - public void testng() throws Exception { + @BuildCommand(summary = "Tests the project with TestNG") + public void test() throws Exception { new TestNgOperation() .fromProject(this) .packages("com.example")