forked from LivingDoc/livingdoc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '78-define-yaml-config-format-and-document-it-in-the-end…
…user-documentation' into 'master' Resolve "Define yaml config format and document it in the enduser documentation" Closes LivingDoc#78 See merge request enpro-ws2019-20/enpro-livingdoc!42
- Loading branch information
Showing
3 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
|
||
include::repositories.adoc[] | ||
include::fixtures.adoc[] | ||
include::reports.adoc[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
== Generate Reports | ||
|
||
A Report represent the Results of executing a Document. | ||
The Report include the Document and the Status of the execution. | ||
A Report can be represented in different formats like HTML or PDF. | ||
|
||
Supported Report Formats: | ||
|
||
* HTML Report | ||
* Json Report | ||
Configure the generation of Reports in the `living-doc.yaml` file. | ||
The `living-doc.yaml` contains the yaml based configuration of LivingDoc. | ||
This file should be placed in the `src/test/resources` directory. | ||
[source, yaml] | ||
---- | ||
reports: | ||
- name: "default-html" | ||
format: "html" | ||
config: | ||
outputDir: "livingdoc/reports/html" | ||
---- | ||
`reports` is a list of different reports. | ||
Each report have a `name` as unique identifier. | ||
Each report also specifies the `format` of the generated Report. | ||
Optionally a `config` can be specified for Report format specific parameters. | ||
|
||
=== HTML Reports | ||
The HTML Report format is similar to the HTML Document format, with additional coloring to represent the Status of the execution. | ||
|
||
==== Configuration | ||
.outputDir | ||
The directory where the HTML Reports are save. | ||
The default value is `livingdoc/reports/html`. | ||
|
||
=== Json Reports | ||
|
||
==== Configuration | ||
.outputDir | ||
The directory where the HTML Reports are save. | ||
The default value is `livingdoc/reports/json`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters