From 566c5e5b443bdd01c7836fb36d539f8cc1b5fb07 Mon Sep 17 00:00:00 2001 From: kwoyke Date: Tue, 23 Nov 2021 06:26:31 +0100 Subject: [PATCH] BAEL-5242: Add surefire config for TestNG (#11471) * BAEL-5242: Add surefire config for TestNG * BAEL-5242: Configure surefire to run unit and integration tests --- testing-modules/testng/pom.xml | 45 +++++++++++++++++-- .../testng/src/test/resources/test_int.xml | 10 +++++ .../testng/src/test/resources/test_unit.xml | 9 ++++ 3 files changed, 60 insertions(+), 4 deletions(-) create mode 100644 testing-modules/testng/src/test/resources/test_int.xml create mode 100644 testing-modules/testng/src/test/resources/test_unit.xml diff --git a/testing-modules/testng/pom.xml b/testing-modules/testng/pom.xml index 99af6be5b4..5d3bf6b560 100644 --- a/testing-modules/testng/pom.xml +++ b/testing-modules/testng/pom.xml @@ -1,7 +1,7 @@ + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 testng 0.1.0-SNAPSHOT @@ -16,7 +16,6 @@ - org.testng testng @@ -41,8 +40,46 @@ + + + default-second + + + + org.apache.maven.plugins + maven-surefire-plugin + + + src\test\resources\parametrized_testng.xml + src\test\resources\test_suite.xml + src\test\resources\test_unit.xml + + + + + + + + integration-lite-second + + + + org.apache.maven.plugins + maven-surefire-plugin + + + src\test\resources\test_group.xml + src\test\resources\test_setup.xml + src\test\resources\test_int.xml + + + + + + + + - 7.1.0 diff --git a/testing-modules/testng/src/test/resources/test_int.xml b/testing-modules/testng/src/test/resources/test_int.xml new file mode 100644 index 0000000000..9eb86739b6 --- /dev/null +++ b/testing-modules/testng/src/test/resources/test_int.xml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/testing-modules/testng/src/test/resources/test_unit.xml b/testing-modules/testng/src/test/resources/test_unit.xml new file mode 100644 index 0000000000..76c97db735 --- /dev/null +++ b/testing-modules/testng/src/test/resources/test_unit.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file