Skip to content

Conversation

@hvennekate
Copy link
Collaborator

No description provided.


import static org.assertj.core.api.Assertions.assertThat;

public class ReportConfigArgumentTest {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the former ReportGeneratorArgumentTest (next file; deleted). Like the test further down after that, it does not really require the asciidoc reporter, so I replaced it with anonymous classes. It might be worthwhile extracting those or moving/renaming the tests to signify that they are really testing the AbstractReportConfig and AbstractReportGenerator, respectively.

@hvennekate hvennekate marked this pull request as ready for review May 9, 2025 14:42
@johthor
Copy link
Contributor

johthor commented May 18, 2025

Hey @hvennekate I've now created a pull request draft #1945 for my old changes after i've integrated the current changes from master.

Let me know if I need to do more adjustments after this PR is merged.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR extracts the AsciiDoc report generator into its own submodule, structures its build, and adds minimal documentation.

  • Replaces explicit local types with var and removes now-unused imports in AsciiDocReportGenerator.java.
  • Introduces a new build.gradle for the AsciiDoc report submodule with its dependencies.
  • Adds a basic README.md for the AsciiDoc Report module.

Reviewed Changes

Copilot reviewed 32 out of 32 changed files in this pull request and generated no comments.

File Description
jgiven-asciidoc-report/src/main/java/com/tngtech/jgiven/report/asciidoc/AsciiDocReportGenerator.java Simplified locals with var, removed unused imports
jgiven-asciidoc-report/build.gradle Added java-library plugin and module dependencies
jgiven-asciidoc-report/README.md Created initial AsciiDoc report README
Comments suppressed due to low confidence (2)

jgiven-asciidoc-report/src/main/java/com/tngtech/jgiven/report/asciidoc/AsciiDocReportGenerator.java:99

  • Key methods in AsciiDocReportGenerator (e.g. writeFeatureFiles, writeIndexFileForFullReport) aren't covered by any unit or integration tests. Consider adding tests that verify generated AsciiDoc blocks and file outputs.
completeReportModel.getAllReportModels().stream()

jgiven-asciidoc-report/README.md:3

  • The README is minimal—adding sections for setup, build instructions, usage examples, and links to sample output would help new users get started quickly.
For text-based report output

l-1squared
l-1squared previously approved these changes Jun 13, 2025
@hvennekate
Copy link
Collaborator Author

Hey @hvennekate I've now created a pull request draft #1945 for my old changes after i've integrated the current changes from master.

Let me know if I need to do more adjustments after this PR is merged.

Hi @johthor ,
sorry for the delayed response -- many thanks and let me check it out once this PR is merged.

@hvennekate hvennekate force-pushed the iss54/extract_asciidoc_reporter branch from d052819 to 3a17934 Compare July 11, 2025 11:33
@hvennekate hvennekate force-pushed the iss54/extract_asciidoc_reporter branch 2 times, most recently from 19c3849 to 3a17934 Compare July 25, 2025 07:31
@hvennekate hvennekate force-pushed the iss54/extract_asciidoc_reporter branch from 66f8fae to 31774b0 Compare July 25, 2025 09:37
l-1squared
l-1squared previously approved these changes Sep 26, 2025
Copy link
Collaborator

@l-1squared l-1squared left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


switch (parsedFormat) {
case ASCIIDOC:
var generator = switch (parsedFormat) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!
Is that java17 conformant?

@hvennekate hvennekate merged commit 8bd3adf into master Sep 26, 2025
21 checks passed
@hvennekate hvennekate deleted the iss54/extract_asciidoc_reporter branch September 26, 2025 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants