Skip to content

#277 Strengthen nested-path tests with HasNextSyntaxNode assertions - #279

Merged
sanelli merged 3 commits into
mainfrom
277-strengthen-nested-path-generator-tests-with-full-hasnextsyntaxnode-assertions
Jul 19, 2026
Merged

#277 Strengthen nested-path tests with HasNextSyntaxNode assertions#279
sanelli merged 3 commits into
mainfrom
277-strengthen-nested-path-generator-tests-with-full-hasnextsyntaxnode-assertions

Conversation

@sanelli

@sanelli sanelli commented Jul 19, 2026

Copy link
Copy Markdown
Owner

Summary

  • Strengthen all successful nested property-path generator integration tests to assert generated map method bodies with HasSyntaxNodesCount / HasNextSyntaxNode (no string containment on generated source).
  • Add BeConditionalAccessExpressionSyntax and BeThrowExpressionSyntax assertion helpers (and nested BeAssignToContextStatement path support).
  • Bump MappaVersion to 10.2.0-alpha.11 for CI.

Test plan

  • Filtered nested-path suite: 28/28 passed
  • .\Scripts\RunTestsAndReportCoverage.ps1 — 2392 passed; coverage matches baseline (line 97.5%, branch 90.5%, method 95.4%)
  • CI green on PR

Closes #277

sanelli and others added 3 commits July 19, 2026 17:14
Document that Mappa.Generator.Tests must assert generated syntax via HasNextSyntaxNode and must not use string-containment checks on generated source text.

Co-authored-by: Cursor <cursoragent@cursor.com>
…rtions.

Replace generated-source string checks with structured Roslyn syntax walks, and add conditional-access and throw-expression assertion helpers.

Co-authored-by: Cursor <cursoragent@cursor.com>
CI requires an alpha increment for the nested-path HasNextSyntaxNode test strengthening.

Co-authored-by: Cursor <cursoragent@cursor.com>
@sanelli sanelli linked an issue Jul 19, 2026 that may be closed by this pull request
5 tasks
@sanelli
sanelli merged commit 837a150 into main Jul 19, 2026
1 check passed
@sanelli
sanelli deleted the 277-strengthen-nested-path-generator-tests-with-full-hasnextsyntaxnode-assertions branch July 19, 2026 17:21
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.

Strengthen nested-path generator tests with full HasNextSyntaxNode assertions

1 participant