-
Notifications
You must be signed in to change notification settings - Fork 101
feature/54-asciiDocReporter-tags #1945
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
These will be used prepare a hierarchical tag overview. Issue: TNG#54 Signed-off-by: Johannes Thorn <[email protected]>
Issue: TNG#54 Signed-off-by: Johannes Thorn <[email protected]>
Issue: TNG#54 Signed-off-by: Johannes Thorn <[email protected]>
Issue: TNG#54 Signed-off-by: Johannes Thorn <[email protected]>
Issue: TNG#54 Signed-off-by: Johannes Thorn <[email protected]>
Issue: TNG#54 Signed-off-by: Johannes Thorn <[email protected]>
Issue: TNG#54 Signed-off-by: Johannes Thorn <[email protected]>
Issue: TNG#54 Signed-off-by: Johannes Thorn <[email protected]>
Signed-off-by: Johannes Thorn <[email protected]> # Conflicts: # jgiven-core/src/main/java/com/tngtech/jgiven/report/asciidoc/AsciiDocReportGenerator.java
Signed-off-by: Johannes Thorn <[email protected]>
|
Moinmoin! Many thanks -- in the meantime, I had already opened #1940 to extract the generator into a module of its own... let me check how we can combine the two. |
Signed-off-by: Johannes Thorn <[email protected]>
Signed-off-by: Johannes Thorn <[email protected]>
Signed-off-by: Johannes Thorn <[email protected]> # 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 <[email protected]>
Also reformat Signed-off-by: Johannes Thorn <[email protected]>
Signed-off-by: Johannes Thorn <[email protected]>
Also optimize some tag prefixes to improve the understanding. Issue: TNG#54 Signed-off-by: Johannes Thorn <[email protected]>
fcf4be9 to
1866f6a
Compare
|
Hey @hvennekate, I had tried to rebase these commits onto #1940 but it got to confusing for me to finish it. Now after the extraction has been merged I have merged the current I believe that everything is now working as expected. At a later date I might still add the tag hierarchy tree as it is shown in the HTML report. |
| import org.junit.runner.RunWith; | ||
| import org.junit.runners.Parameterized; | ||
|
|
||
| @RunWith(Parameterized.class) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we have JUnit5 tests?
l-1squared
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Output looks fine
but for some reason the report says "There are 999 tagged scenarios" when no test was executed
| } | ||
|
|
||
| static String toAsciiDocTagStart(ExecutionStatus executionStatus) { | ||
| public static String toAsciiDocStartTag(final String scenarioName) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks eerily similar to what the TagMapper does. is that intended?
| this.allTags = allTags; | ||
| } | ||
|
|
||
| Map<String, Map<String, List<String>>> computeGroupedTag() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we potentially return something that is easier to decypher?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also isn't the groupoing files by their Tag (but then why the double map?)
so would groupScenarioFilesByTag not be a better name?
| tagNames.add(mkTag("Best Tag")); | ||
| final long nineMilliseconds = 10_000_000L; | ||
| List<Tag> tags = List.of(mkTag("BestTag")); | ||
| long nineMilliseconds = 10_000_000L; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why does nine millis start with 10?
| @Test | ||
| public void convert_scenario_footer_with_multiple_tags() { | ||
| // given | ||
| List<Tag> tags = List.of(mkTag("BestTag"), mkTag("OtherTag"), mkTag("NicestTag")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"OtherTag" must be really intimidated by it fabulous company :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this, of all things, have some tests?
Create index files for all used JGiven tags.
These pages distinguish between single-valued and multi-valued tags.