Skip to content

Commit 120efc3

Browse files
committed
feat: xlsx, Markdown and AsciiDoc report format
1 parent 1e8d645 commit 120efc3

File tree

5 files changed

+11
-0
lines changed

5 files changed

+11
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Added
1111

1212
- report examples (documentation)
13+
- xlsx, Markdown and AsciiDoc report format
1314

1415
### Changed
1516

pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@
144144
<groupId>org.fugerit.java</groupId>
145145
<artifactId>fj-doc-mod-fop</artifactId>
146146
</dependency>
147+
<dependency>
148+
<groupId>org.fugerit.java</groupId>
149+
<artifactId>fj-doc-mod-poi</artifactId>
150+
</dependency>
147151
<dependency>
148152
<groupId>org.junit.jupiter</groupId>
149153
<artifactId>junit-jupiter</artifactId>

src/main/java/org/fugerit/java/junit5/tag/check/facade/TagReportFacade.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ private void generateReport(Map<ExecutedTest, Set<String>> testTagMap)
5151
generateXmlReport( testTagMap );
5252
break;
5353
case DocConfig.TYPE_HTML:
54+
case DocConfig.TYPE_XLSX:
5455
case DocConfig.TYPE_PDF:
56+
case DocConfig.TYPE_MD:
57+
case DocConfig.TYPE_ADOC:
5558
generateFjDocReport( helper, format.toLowerCase() );
5659
break;
5760
default:

src/main/resources/junit5-tag-check-maven-plugin/fm-doc-process-config.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
<docHandler id="pdf-fop" info="pdf" type="org.fugerit.java.doc.mod.fop.PdfFopTypeHandler">
3434
<docHandlerCustomConfig charset="UTF-8" fop-config-mode="classloader" fop-config-classloader-path="junit5-tag-check-maven-plugin/fop-config.xml" fop-suppress-events="1"/>
3535
</docHandler>
36+
<!-- Type handler generating xlsx -->
37+
<docHandler id="xlsx-poi" info="xlsx" type="org.fugerit.java.doc.mod.poi.XlsxPoiTypeHandler" unsafe="true" unsafeMode="log-message"/>
3638
</docHandlerConfig>
3739

3840
<docChain id="shared">

src/main/resources/junit5-tag-check-maven-plugin/template/report.ftl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
.skip { color: gray; }
3737
.tag { background-color: #e7f3ff; padding: 2px 8px; border-radius: 3px; margin: 2px; display: inline-block; }
3838
</info>
39+
<info name="excel-table-id">summary-table=Summary;tags-summary-table=Tags Summary;all-tests-table=All Executed Tests</info>
3940
</metadata>
4041
<body>
4142
<h head-level="1" style="bold">${docTitle}</h>

0 commit comments

Comments
 (0)