Skip to content

Conversation

@ajcvickers
Copy link
Collaborator

With .NET 10 and the latest test runner, test discovery was not working reliably for me. I added a target for each project to fix it, and updated the defines to be consistent across projects.

@ajcvickers ajcvickers requested a review from a team as a code owner December 17, 2025 09:39
@ajcvickers ajcvickers requested review from adelinowona and Copilot and removed request for adelinowona December 17, 2025 09:39
Copy link
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 addresses test discovery issues with .NET 10 and the latest test runner by standardizing project configuration across test projects.

  • Adds explicit TargetFramework declarations to UnitTests and FunctionalTests projects
  • Standardizes DefineConstants across all configurations to include TRACE and DEBUG/RELEASE flags consistently
  • Ensures all test projects have uniform configuration property definitions

Reviewed changes

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

File Description
MongoDB.EntityFrameworkCore.UnitTests.csproj Adds TargetFramework (net8.0) and complete DefineConstants properties for all configurations (Debug, Release, Debug EF9, Release EF9)
MongoDB.EntityFrameworkCore.SpecificationTests.csproj Updates DefineConstants for Debug and Release configurations to include TRACE and DEBUG/RELEASE flags for consistency with EF9 configurations
MongoDB.EntityFrameworkCore.FunctionalTests.csproj Adds TargetFramework (net8.0) and updates DefineConstants for Debug and Release configurations to match the pattern used in EF9 configurations

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

With .NET 10 and the latest test runner, test discovery was not working reliably for me. I added a target for each project to fix it, and updated the defines to be consistent across projects.
Copy link
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

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ajcvickers
Copy link
Collaborator Author

No longer needed with latest Rider.

@ajcvickers ajcvickers closed this Jan 9, 2026
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