Added overriding test command documentation
This commit is contained in:
parent
178bbfe572
commit
3ca29f84ff
1 changed files with 16 additions and 0 deletions
16
README.md
16
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue