Skip to content

[Test] assert report-output content & add VersionChecker/GitHubRelease error-path tests; fixes #53#75

Merged
samatstariongroup merged 1 commit into
developmentfrom
GH53
Jun 21, 2026
Merged

[Test] assert report-output content & add VersionChecker/GitHubRelease error-path tests; fixes #53#75
samatstariongroup merged 1 commit into
developmentfrom
GH53

Conversation

@samatstariongroup

Copy link
Copy Markdown
Member

Addresses the two acceptance criteria of #53.

Generator tests now assert content, not just file creation:

  • HtmlReportGenerator / MarkdownReportGenerator: assert the rendered output contains the package name/namespace, the section headers, and a representative class (Container) and enum (Unit/PIECE) from the recipe model (via the string-returning GenerateReport overload).
  • XlReportGenerator: re-open the workbook and assert the EClass / EEnum / EDataType sheets carry the expected cells (Container, Recipe, capacity, Unit, PIECE, DataType).
  • ModelInspector: replace Is.Not.Empty with assertions on the report's section markers (MULTIPLICITY RESULTS, INTERESTING CLASSES, MISSING DOCUMENTATION) and the inspected class.

VersionChecker / GitHubRelease error paths (mocked HTTP layer):

  • success: QueryLatestReleaseAsync returns a populated GitHubRelease (tag/body/url) - covers deserialization;
  • non-success status (404) ? returns null and ExecuteAsync does not throw;
  • malformed JSON ? returns null and ExecuteAsync does not throw.

Reuses the existing custom HttpMessageHandler test pattern. Full suite green (192 tests).

Fixes #53.

… tests; fixes #53

Strengthen HTML/Markdown/Excel and ModelInspector generator tests to assert specific
generated content (sections, classes, enums, sheet cells) instead of only file creation,
and add mocked-HTTP tests for VersionChecker/GitHubRelease success payload, non-success
status and malformed-JSON paths.
@github-actions

Copy link
Copy Markdown
Contributor
Package Line Rate Branch Rate Complexity Health
ECoreNetto 86% 79% 417
ECoreNetto.Extensions 99% 93% 101
ECoreNetto.HandleBars 99% 98% 60
ECoreNetto.Reporting 83% 71% 181
ECoreNetto.Tools 95% 92% 58
Summary 89% (2170 / 2432) 82% (498 / 610) 817

@sonarqubecloud

Copy link
Copy Markdown

@samatstariongroup samatstariongroup merged commit 311c430 into development Jun 21, 2026
14 checks passed
@samatstariongroup samatstariongroup deleted the GH53 branch June 21, 2026 15:27
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.

Add report-output validation & GitHubRelease tests

1 participant