Repository navigation
johthor/feature/54 asciiDocReporter tags - #2211
Conversation
These will be used prepare a hierarchical tag overview. Issue: #54 Signed-off-by: Johannes Thorn <2544827+johthor@users.noreply.github.com>
Issue: #54 Signed-off-by: Johannes Thorn <2544827+johthor@users.noreply.github.com>
Issue: #54 Signed-off-by: Johannes Thorn <2544827+johthor@users.noreply.github.com>
Issue: #54 Signed-off-by: Johannes Thorn <2544827+johthor@users.noreply.github.com>
Issue: #54 Signed-off-by: Johannes Thorn <2544827+johthor@users.noreply.github.com>
Issue: #54 Signed-off-by: Johannes Thorn <2544827+johthor@users.noreply.github.com>
Issue: #54 Signed-off-by: Johannes Thorn <2544827+johthor@users.noreply.github.com>
Issue: #54 Signed-off-by: Johannes Thorn <2544827+johthor@users.noreply.github.com>
Signed-off-by: Johannes Thorn <2544827+johthor@users.noreply.github.com> # Conflicts: # jgiven-core/src/main/java/com/tngtech/jgiven/report/asciidoc/AsciiDocReportGenerator.java
Signed-off-by: Johannes Thorn <2544827+johthor@users.noreply.github.com>
Signed-off-by: Johannes Thorn <2544827+johthor@users.noreply.github.com>
Signed-off-by: Johannes Thorn <2544827+johthor@users.noreply.github.com>
Signed-off-by: Johannes Thorn <2544827+johthor@users.noreply.github.com> # Conflicts: # jgiven-asciidoc-report/src/main/java/com/tngtech/jgiven/report/asciidoc/AsciiDocReportGenerator.java # jgiven-asciidoc-report/src/main/java/com/tngtech/jgiven/report/asciidoc/HierarchyCalculator.java # jgiven-asciidoc-report/src/test/java/com/tngtech/jgiven/report/asciidoc/AsciiDocIntroSnippetGeneratorTest.java
Signed-off-by: Johannes Thorn <2544827+johthor@users.noreply.github.com>
Also reformat Signed-off-by: Johannes Thorn <2544827+johthor@users.noreply.github.com>
Also optimize some tag prefixes to improve the understanding. Issue: #54 Signed-off-by: Johannes Thorn <2544827+johthor@users.noreply.github.com>
Signed-off-by: Hendrik Vennekate <Hendrik.Vennekate@tngtech.com>
5b343e2 to
3d56500
Compare
Signed-off-by: Hendrik Vennekate <Hendrik.Vennekate@tngtech.com>
Signed-off-by: Hendrik Vennekate <Hendrik.Vennekate@tngtech.com>
Signed-off-by: Hendrik Vennekate <Hendrik.Vennekate@tngtech.com>
Signed-off-by: Hendrik Vennekate <Hendrik.Vennekate@tngtech.com>
Signed-off-by: Hendrik Vennekate <Hendrik.Vennekate@tngtech.com>
Signed-off-by: Hendrik Vennekate <Hendrik.Vennekate@tngtech.com>
Signed-off-by: Hendrik Vennekate <Hendrik.Vennekate@tngtech.com>
Signed-off-by: Hendrik Vennekate <Hendrik.Vennekate@tngtech.com>
d9716ad to
ab02137
Compare
| implementation(libs.guava) | ||
| implementation(libs.slf4j.api) | ||
| implementation(project(":jgiven-core")) | ||
| testImplementation(platform(libs.junit6.bom)) |
There was a problem hiding this comment.
remind me to place a bundle that if we merge before the injection error
There was a problem hiding this comment.
Will add TODO
| @@ -298,38 +295,38 @@ public void convert_step_with_multiline_argument_and_data_table() { | |||
| //// | |||
There was a problem hiding this comment.
I guess this can go too
There was a problem hiding this comment.
Why, though, actually? I had it removed earlier, but looking back at it before committing: Why not split into nested classes?
| */ | ||
| final class AsciiDocSnippetGenerator { | ||
| private static final String LINE_BREAK = System.lineSeparator(); | ||
| private static final String LEVEL_OFFSET = ":leveloffset:"; |
There was a problem hiding this comment.
that would be a leveloffset indicator, woudnt it?
There was a problem hiding this comment.
Seems to be called an "attribute": https://asciidoc-py.github.io/userguide.html
There was a problem hiding this comment.
LEVEL_OFFSET_ATTRIBUTE_NAME seems lengthy
There was a problem hiding this comment.
? It's just LEVEL_OFFSET_ATTRIBUTE...
| // Report title is provided via report config. | ||
| :toc: left | ||
| :toclevels: 3 | ||
| :toclevels: 2 |
There was a problem hiding this comment.
a style choice, I presume?
There was a problem hiding this comment.
Presumably @johthor looked at a lot of reports and got tired of too many levels in TOC, I suppose.
In order to make it more evident what collections of `String` really are Signed-off-by: Hendrik Vennekate <Hendrik.Vennekate@tngtech.com>
a39c29b to
3ae53c5
Compare
Signed-off-by: Hendrik Vennekate <Hendrik.Vennekate@tngtech.com>
Signed-off-by: Hendrik Vennekate <Hendrik.Vennekate@tngtech.com>
Signed-off-by: Hendrik Vennekate <Hendrik.Vennekate@tngtech.com>
… of ID Signed-off-by: Hendrik Vennekate <Hendrik.Vennekate@tngtech.com>
Signed-off-by: Hendrik Vennekate <Hendrik.Vennekate@tngtech.com>
f80de01 to
49b54c3
Compare
| private GsonHolder() { | ||
| } | ||
|
|
||
| public static Gson get() { |
There was a problem hiding this comment.
Ideally, we could also do this using a LazyInitializer. I was not sure what the position of pulling additional dependencies was (here: Apache Commons).
There was a problem hiding this comment.
Generally speaking, though, GSON should only be initialized once, I believe.
| import static com.google.gson.internal.GsonTypes.newParameterizedTypeWithOwner; | ||
|
|
||
| public class GsonHolder { | ||
| private static final class ClassTypeAdapter extends TypeAdapter<Class<?>> { |
There was a problem hiding this comment.
This is the controversial part: GSON does not per default allow for (de-)serializing Java classes for security reasons.
It stands to reason that there is little potential for harm here as we are limiting it to annotations and this mechanism is mainly used for writing and reading reports (unless I missed some aspects).
b7a4b9a to
68782d0
Compare
Signed-off-by: Hendrik Vennekate <Hendrik.Vennekate@tngtech.com>
Signed-off-by: Hendrik Vennekate <Hendrik.Vennekate@tngtech.com>
Signed-off-by: Hendrik Vennekate <Hendrik.Vennekate@tngtech.com>
Signed-off-by: Hendrik Vennekate <Hendrik.Vennekate@tngtech.com>
Signed-off-by: Hendrik Vennekate <Hendrik.Vennekate@tngtech.com>
Signed-off-by: Hendrik Vennekate <Hendrik.Vennekate@tngtech.com>
Signed-off-by: Hendrik Vennekate <Hendrik.Vennekate@tngtech.com>
…asciiDocReporter-tags
Signed-off-by: Hendrik Vennekate <Hendrik.Vennekate@tngtech.com>
Signed-off-by: Hendrik Vennekate <Hendrik.Vennekate@tngtech.com>
…asciiDocReporter-tags
Continuation of #1945