mirror of
https://github.com/Echtzeitsysteme/gips-tests.git
synced 2024-05-20 12:00:56 +00:00
Adds HTML report generation to global test runner
This commit is contained in:
parent
50e1038b2e
commit
0399800786
6
.gitignore
vendored
6
.gitignore
vendored
|
@ -6,5 +6,7 @@ bin
|
|||
*.log
|
||||
*.LOG
|
||||
test.suite.gips/*.xmi
|
||||
|
||||
test.suite.gips/build/
|
||||
|
||||
test.suite.gips/build/
|
||||
|
||||
*.html
|
||||
|
|
|
@ -1,6 +1,13 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry exported="true" kind="lib" path="lib/html-report-generator/extentreports-5.0.9.jar"/>
|
||||
<classpathentry exported="true" kind="lib" path="lib/html-report-generator/freemarker-2.3.30.jar"/>
|
||||
<classpathentry exported="true" kind="lib" path="lib/html-report-generator/gson-2.8.6.jar"/>
|
||||
<classpathentry exported="true" kind="lib" path="lib/html-report-generator/junit5-html-report-generator-1.0.0-SNAPSHOT.jar"/>
|
||||
<classpathentry exported="true" kind="lib" path="lib/html-report-generator/lombok-1.18.12.jar"/>
|
||||
<classpathentry exported="true" kind="lib" path="lib/html-report-generator/reactive-streams-1.0.3.jar"/>
|
||||
<classpathentry exported="true" kind="lib" path="lib/html-report-generator/rxjava-3.0.4.jar"/>
|
||||
<classpathentry exported="true" kind="lib" path="lib/junit-platform-reporting/junit-platform-reporting-1.8.2.jar"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17">
|
||||
<attributes>
|
||||
|
|
|
@ -17,4 +17,11 @@ Export-Package: test.suite.gips,
|
|||
test.suite.gipsl.all.build,
|
||||
test.suite.gipsl.all.build.utils
|
||||
Bundle-ClassPath: lib/junit-platform-reporting/junit-platform-reporting-1.8.2.jar,
|
||||
lib/html-report-generator/extentreports-5.0.9.jar,
|
||||
lib/html-report-generator/freemarker-2.3.30.jar,
|
||||
lib/html-report-generator/gson-2.8.6.jar,
|
||||
lib/html-report-generator/junit5-html-report-generator-1.0.0-SNAPSHOT.jar,
|
||||
lib/html-report-generator/lombok-1.18.12.jar,
|
||||
lib/html-report-generator/reactive-streams-1.0.3.jar,
|
||||
lib/html-report-generator/rxjava-3.0.4.jar,
|
||||
.
|
||||
|
|
|
@ -2,4 +2,11 @@ source.. = src/
|
|||
output.. = bin/
|
||||
bin.includes = META-INF/,\
|
||||
.,\
|
||||
lib/junit-platform-reporting/junit-platform-reporting-1.8.2.jar
|
||||
lib/junit-platform-reporting/junit-platform-reporting-1.8.2.jar,\
|
||||
lib/html-report-generator/extentreports-5.0.9.jar,\
|
||||
lib/html-report-generator/freemarker-2.3.30.jar,\
|
||||
lib/html-report-generator/gson-2.8.6.jar,\
|
||||
lib/html-report-generator/junit5-html-report-generator-1.0.0-SNAPSHOT.jar,\
|
||||
lib/html-report-generator/lombok-1.18.12.jar,\
|
||||
lib/html-report-generator/reactive-streams-1.0.3.jar,\
|
||||
lib/html-report-generator/rxjava-3.0.4.jar
|
||||
|
|
Binary file not shown.
BIN
test.suite.gips/lib/html-report-generator/freemarker-2.3.30.jar
Normal file
BIN
test.suite.gips/lib/html-report-generator/freemarker-2.3.30.jar
Normal file
Binary file not shown.
BIN
test.suite.gips/lib/html-report-generator/gson-2.8.6.jar
Normal file
BIN
test.suite.gips/lib/html-report-generator/gson-2.8.6.jar
Normal file
Binary file not shown.
Binary file not shown.
BIN
test.suite.gips/lib/html-report-generator/lombok-1.18.12.jar
Normal file
BIN
test.suite.gips/lib/html-report-generator/lombok-1.18.12.jar
Normal file
Binary file not shown.
Binary file not shown.
BIN
test.suite.gips/lib/html-report-generator/rxjava-3.0.4.jar
Normal file
BIN
test.suite.gips/lib/html-report-generator/rxjava-3.0.4.jar
Normal file
Binary file not shown.
|
@ -24,6 +24,8 @@ import org.junit.platform.launcher.listeners.SummaryGeneratingListener;
|
|||
import org.junit.platform.launcher.listeners.TestExecutionSummary;
|
||||
import org.junit.platform.reporting.legacy.xml.LegacyXmlReportGeneratingListener;
|
||||
|
||||
import io.github.gdiegel.junit5_html_report_generator.ExtentReportGeneratingListener;
|
||||
|
||||
public class GlobalTestRunner {
|
||||
|
||||
public static void main(final String[] args) {
|
||||
|
@ -36,8 +38,7 @@ public class GlobalTestRunner {
|
|||
final SummaryGeneratingListener listener = new SummaryGeneratingListener();
|
||||
final LegacyXmlReportGeneratingListener xmlListener = new LegacyXmlReportGeneratingListener(
|
||||
Path.of("./build/reports"), new PrintWriter(System.out));
|
||||
// TODO: Add HTML report generator later on
|
||||
// final ExtentReportGeneratingListener extentReportGeneratingListener = new ExtentReportGeneratingListener();
|
||||
final ExtentReportGeneratingListener extentReportGeneratingListener = new ExtentReportGeneratingListener();
|
||||
|
||||
// Find tests and build request
|
||||
LauncherDiscoveryRequest request;
|
||||
|
@ -63,8 +64,7 @@ public class GlobalTestRunner {
|
|||
launcher.registerTestExecutionListeners(listener);
|
||||
launcher.registerTestExecutionListeners(xmlListener);
|
||||
|
||||
// TODO: Add HTML report generator later on
|
||||
// launcher.registerTestExecutionListeners(extentReportGeneratingListener);
|
||||
launcher.registerTestExecutionListeners(extentReportGeneratingListener);
|
||||
|
||||
// Run tests
|
||||
launcher.execute(request);
|
||||
|
|
Loading…
Reference in a new issue