Skip to content

Fix nullability suppressor for TestContext when explicit constructor is declared#6139

Merged
Youssef1313 merged 4 commits into
mainfrom
dev/ygerges/suppressor
Jul 23, 2025
Merged

Fix nullability suppressor for TestContext when explicit constructor is declared#6139
Youssef1313 merged 4 commits into
mainfrom
dev/ygerges/suppressor

Conversation

@Youssef1313
Copy link
Copy Markdown
Member

Fixes #6136

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.50%. Comparing base (cd0fd62) to head (8817a49).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6139      +/-   ##
==========================================
- Coverage   76.92%   74.50%   -2.43%     
==========================================
  Files         619      619              
  Lines       37632    37633       +1     
==========================================
- Hits        28948    28038     -910     
- Misses       8684     9595     +911     
Flag Coverage Δ
Debug 74.50% <100.00%> (-2.43%) ⬇️
integration 74.50% <100.00%> (-2.43%) ⬇️
production 74.50% <100.00%> (-2.43%) ⬇️
unit 74.50% <100.00%> (-2.43%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...rs/NonNullableReferenceNotInitializedSuppressor.cs 85.18% <100.00%> (+0.56%) ⬆️

... and 64 files with indirect coverage changes

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

@Youssef1313 Youssef1313 enabled auto-merge (squash) July 23, 2025 11:32
Comment thread src/Analyzers/MSTest.Analyzers/NonNullableReferenceNotInitializedSuppressor.cs Outdated
drognanar
drognanar previously approved these changes Jul 23, 2025
@Youssef1313 Youssef1313 merged commit 952a52b into main Jul 23, 2025
8 checks passed
@Youssef1313 Youssef1313 deleted the dev/ygerges/suppressor branch July 23, 2025 19:18
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.

CS8618 (nullability warning) for TestContext is not suppressed when a constructor is explicitly declared

5 participants