Skip to content

Ensure ThreadSafeTaskAnalyzer.Tests is considered as a unit test project#13481

Open
Youssef1313 wants to merge 3 commits intomainfrom
dev/ygerges/threadsafe-task-tests
Open

Ensure ThreadSafeTaskAnalyzer.Tests is considered as a unit test project#13481
Youssef1313 wants to merge 3 commits intomainfrom
dev/ygerges/threadsafe-task-tests

Conversation

@Youssef1313
Copy link
Copy Markdown
Member

@Youssef1313 Youssef1313 marked this pull request as ready for review April 1, 2026 17:53
Copilot AI review requested due to automatic review settings April 1, 2026 17:53
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to ensure ThreadSafeTaskAnalyzer.Tests is treated as a unit test project by Arcade/build tooling, while still allowing the project to opt out of repo-injected shared unit test sources.

Changes:

  • Replaces the project-level opt-out (IsUnitTestProject=false) with a new opt-out switch (DisableTestSharedFiles) in ThreadSafeTaskAnalyzer.Tests.csproj.
  • Updates src/Directory.Build.targets so shared unit test items are only injected when DisableTestSharedFiles is not enabled.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/ThreadSafeTaskAnalyzer.Tests/ThreadSafeTaskAnalyzer.Tests.csproj Switches from disabling unit-test classification to using a new property to suppress shared test file injection.
src/Directory.Build.targets Adds DisableTestSharedFiles to the condition guarding injection of shared unit test items.

@Youssef1313 Youssef1313 requested a review from a team as a code owner April 1, 2026 18:11
@Youssef1313 Youssef1313 force-pushed the dev/ygerges/threadsafe-task-tests branch from c84438c to 6158861 Compare April 1, 2026 20:34
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.

2 participants