From 3ca29f84ff97bc2384646f35131cd54903c1ca24 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Wed, 16 Aug 2023 02:15:02 -0700 Subject: [PATCH] Added overriding test command documentation --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 254c5fb..4ed2d35 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,22 @@ public void testng() throws Exception { ./bld compile testng ``` +You could also override the default `test` command: + +```java +@BuildCommand(summary = "Run tests with TestNG") +public void test throws Exception { + new TestNgOperation() + .fromProject(this) + .suites("src/test/resources/testng.xml") + .verbose(2) + .execute(); +} +``` +``` +./bld compile test +``` + Please check the [TestNgOperation documentation](https://rife2.github.io/bld-testng/rife/bld/extension/TestNgOperation.html#method-summary) for all available configuration options. ### TestNG Dependency