mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-22 01:13:00 +02:00
test: render PDF report via 9pm report.py
The test-report target fed a pre-baked report.adoc to asciidoctor-pdf. Let 9pm's report.py, the author of result.json, both generate and render the report instead. It is invoked with Infix's own theme, fonts and logo so the output is unchanged; downstream projects need only override LOGO to rebrand it. Signed-off-by: Richard Alpe <richard@bit42.se>
This commit is contained in:
+5
-4
@@ -57,10 +57,11 @@ test-spec:
|
||||
-o $(test-specification) $(spec-dir)/Readme.adoc
|
||||
|
||||
test-report:
|
||||
asciidoctor-pdf --theme $(spec-dir)/theme.yml \
|
||||
-a logo="image:$(LOGO)" \
|
||||
-a pdf-fontsdir=$(spec-dir)/fonts \
|
||||
-o $(test-report) $(test-dir)/.log/last/report.adoc
|
||||
$(ninepm_report) pdf $(test-dir)/.log/last/result.json \
|
||||
--theme $(spec-dir)/theme.yml \
|
||||
--fontsdir $(spec-dir)/fonts \
|
||||
--logo "$(LOGO)" \
|
||||
-o $(test-report)
|
||||
|
||||
# Unit tests run with random (-r) hostname and container name to
|
||||
# prevent race conditions when running in CI environments.
|
||||
|
||||
Reference in New Issue
Block a user