Added more tests

This commit is contained in:
Erik C. Thauvin 2023-08-15 15:04:01 -07:00
parent 37efd03e34
commit 8f6e4ddb4e
37 changed files with 40 additions and 1651 deletions

View file

@ -76,13 +76,24 @@ class TestNgOperationTest {
void testExecute() {
assertThatThrownBy(() ->
new TestNgOperation().fromProject(new Project())
.testClass("rife.bld.extension.TestNGSimpleTest")
.testClass("rife.bld.extension.TestNgSimpleTest")
.execute()).isInstanceOf(ExitStatusException.class);
assertThatThrownBy(() ->
new TestNgOperation().fromProject(new Project())
.suites("src/test/resources/testng.xml")
.execute()).isInstanceOf(ExitStatusException.class);
assertThatCode(() ->
new TestNgOperation().fromProject(new Project())
.testClass("rife.bld.extension.TestNGSimpleTest")
.methods("rife.bld.extension.TestNGSimpleTest.verifyHello")
.testClass("rife.bld.extension.TestNgSimpleTest")
.methods("rife.bld.extension.TestNgSimpleTest.verifyHello")
.execute())
.doesNotThrowAnyException();
assertThatCode(() ->
new TestNgOperation().fromProject(new Project())
.suites("src/test/resources/testng2.xml")
.execute())
.doesNotThrowAnyException();
}