-
Notifications
You must be signed in to change notification settings - Fork 321
Common Project | Functional Tests #3890
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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 migrates the FunctionalTests project to reference the common MDS project, following the pattern established in PR #3870 for UnitTests. The changes modernize the project structure and simplify the build process.
Changes:
- Migrated FunctionalTests project to reference the unified/common MDS project with conditional logic for Package vs Project mode
- Modernized FunctionalTests.csproj by removing manual file inclusions, restructuring references into clear netfx/netcore sections, and adding comprehensive documentation comments
- Simplified build.proj by removing separate BuildFunctionalTests*/RestoreFunctionalTests* targets and updating RunFunctionalTests* targets to build the project directly
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| Microsoft.Data.SqlClient.UnitTests.csproj | Reordered TDS-related project references for consistency |
| SslOverTdsStreamTest.cs | Added #if NET conditional compilation and updated namespace from SNI to ManagedSni |
| Microsoft.Data.SqlClient.FunctionalTests.csproj | Complete restructure with conditional MDS reference, organized netfx/netcore sections, and removal of manual file inclusions |
| build.proj | Removed FunctionalTests build/restore targets, updated RunFunctionalTests* targets to use simplified command structure |
src/Microsoft.Data.SqlClient/tests/FunctionalTests/SslOverTdsStreamTest.cs
Show resolved
Hide resolved
...crosoft.Data.SqlClient/tests/FunctionalTests/Microsoft.Data.SqlClient.FunctionalTests.csproj
Show resolved
Hide resolved
...crosoft.Data.SqlClient/tests/FunctionalTests/Microsoft.Data.SqlClient.FunctionalTests.csproj
Show resolved
Hide resolved
There was a problem hiding this 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 5 comments.
...crosoft.Data.SqlClient/tests/FunctionalTests/Microsoft.Data.SqlClient.FunctionalTests.csproj
Show resolved
Hide resolved
...crosoft.Data.SqlClient/tests/FunctionalTests/Microsoft.Data.SqlClient.FunctionalTests.csproj
Show resolved
Hide resolved
src/Microsoft.Data.SqlClient/tests/UnitTests/Microsoft.Data.SqlClient.UnitTests.csproj
Show resolved
Hide resolved
src/Microsoft.Data.SqlClient/tests/UnitTests/Microsoft.Data.SqlClient.UnitTests.csproj
Show resolved
Hide resolved
src/Microsoft.Data.SqlClient/tests/FunctionalTests/SslOverTdsStreamTest.cs
Show resolved
Hide resolved
Codecov Report✅ All modified and coverable lines are covered by tests.
Additional details and impacted files@@ Coverage Diff @@
## main #3890 +/- ##
==========================================
- Coverage 76.66% 69.92% -6.75%
==========================================
Files 269 263 -6
Lines 43246 66170 +22924
==========================================
+ Hits 33156 46269 +13113
- Misses 10090 19901 +9811
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
...crosoft.Data.SqlClient/tests/FunctionalTests/Microsoft.Data.SqlClient.FunctionalTests.csproj
Show resolved
Hide resolved
...crosoft.Data.SqlClient/tests/FunctionalTests/Microsoft.Data.SqlClient.FunctionalTests.csproj
Show resolved
Hide resolved
src/Microsoft.Data.SqlClient/tests/FunctionalTests/SslOverTdsStreamTest.cs
Show resolved
Hide resolved
src/Microsoft.Data.SqlClient/tests/UnitTests/Microsoft.Data.SqlClient.UnitTests.csproj
Show resolved
Hide resolved
src/Microsoft.Data.SqlClient/tests/UnitTests/Microsoft.Data.SqlClient.UnitTests.csproj
Show resolved
Hide resolved
paulmedynski
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My comments will be incorporated into the next PR in this series.
Description
Following the pattern from the last PR (#3870), this PR migrates the FunctionalTests to reference the common MDS project. This affords us an opportunity to clean up a fair bit of the project files, so here's an overview of the changes:
Change reference in FunctionalTests from separate MDS projects to common MDS project
Clean up references section in FunctionalTests csproj as per the common project and unit test projects
Remove manual inclusion of all files in the project and use the modern, implicit inclusion mechanism. Only external files and resource files need explicit inclusion.
SslOverTdsStream tests have been #if included to only run on netcore.
Remove RestoreFunctionalTests* and BuildFunctionalTests* targets from build.proj
Change RunFunctionalTests* targets in build.proj to build the project, same procedure that enabled unit test project update to work.
Issues
N/A
Testing
Local test runs work - in IDE, same failures as always happen; in console via build.proj, everything seems to be working. CI runs will validate pipeline integration is working correctly
Guidelines
Please review the contribution guidelines before submitting a pull request: