Skip to content

Conversation

@ChrisPulman
Copy link
Member

What kind of change does this PR introduce?

fix for [Reactive] tests

What is the current behavior?

[Reactive] Tests do not generate the correct code for comparision

What is the new behavior?

Refactors the logic for extracting AlsoNotify property names from [Reactive] attributes to be more robust, handling various constructor argument forms and fallback scenarios.
Adds validation in test helpers to ensure generated code includes property change notifications for all AlsoNotify properties specified via nameof(). Updates test baselines to reflect improved code generation.

What might this PR break?

[Reactive] Tests are extended with more reliable output

Please check if the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Other information:

Refactors the logic for extracting AlsoNotify property names from [Reactive] attributes to be more robust, handling various constructor argument forms and fallback scenarios. Adds validation in test helpers to ensure generated code includes property change notifications for all AlsoNotify properties specified via nameof(). Updates test baselines to reflect improved code generation.
@codecov
Copy link

codecov bot commented Dec 24, 2025

Codecov Report

❌ Patch coverage is 44.44444% with 20 lines in your changes missing coverage. Please review.
✅ Project coverage is 43.22%. Comparing base (f8a5eca) to head (4e33115).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
...ators.Roslyn/Reactive/ReactiveGenerator.Execute.cs 40.00% 11 Missing and 7 partials ⚠️
...rceGenerators.Roslyn/IViewFor/IViewForGenerator.cs 66.66% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #356      +/-   ##
==========================================
+ Coverage   42.86%   43.22%   +0.35%     
==========================================
  Files          64       64              
  Lines        3583     3646      +63     
  Branches      404      420      +16     
==========================================
+ Hits         1536     1576      +40     
- Misses       1935     1950      +15     
- Partials      112      120       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Adds a check to only generate source files when a supported UI framework base type is detected, avoiding creation of empty generated files.
@ChrisPulman ChrisPulman merged commit b0f2e5a into main Dec 24, 2025
6 checks passed
@ChrisPulman ChrisPulman deleted the FixReactiveTests branch December 24, 2025 22:07
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.

3 participants