Added more tests
This commit is contained in:
parent
37efd03e34
commit
8f6e4ddb4e
37 changed files with 40 additions and 1651 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -20,14 +20,14 @@ import org.testng.Assert;
|
|||
import org.testng.annotations.Test;
|
||||
|
||||
/**
|
||||
* Implements the TestNGSimpleTest class.
|
||||
* Implements the TestNgSimpleTest class.
|
||||
*
|
||||
* @author <a href="https://erik.thauvin.net/">Erik C. Thauvin</a>
|
||||
* @since 1.0
|
||||
*/
|
||||
class TestNGSimpleTest {
|
||||
class TestNgSimpleTest {
|
||||
public static void main(String[] args) {
|
||||
new TestNGSimpleTest().verifyHello();
|
||||
new TestNgSimpleTest().verifyHello();
|
||||
}
|
||||
|
||||
@Test
|
Loading…
Add table
Add a link
Reference in a new issue