moq.analyzers icon indicating copy to clipboard operation
moq.analyzers copied to clipboard

Improve code coverage (part 2)

Open rjmurillo opened this issue 8 months ago • 4 comments

Update settings to include Analyzers as well as CodeFixes

Changes

  • Test Settings
    • Refined the configuration for internal coverage measurements to enhance code coverage accuracy.
    • Adjusted filtering to ensure only the most relevant code areas are tracked, resulting in more precise insights.
  • Code fixes
    • Expanded criteria for valid mocked member expressions in async method setups, improving the accuracy of diagnostics.
    • Added new checks for non-private constructors and property characteristics related to Task results.

Related to #342

Summary by CodeRabbit

Summary by CodeRabbit

  • Chores
    • Enhanced configuration for test coverage by refining inclusion and exclusion rules.
    • Updated various package dependencies to their latest versions.
  • Refactor
    • Streamlined internal logic for validating mock setups and handling asynchronous scenarios.
  • Tests
    • Adjusted diagnostic settings to suppress non-critical documentation warnings, reducing unnecessary alerts.
    • Marked certain diagnostic rules as deprecated to indicate they may no longer be recommended for use.

rjmurillo avatar Feb 04 '25 18:02 rjmurillo