Add integration test project to validate example projects build successfully#1792
Conversation
… for all example projects Agent-Logs-Url: https://github.com/dapr/dotnet-sdk/sessions/b572e2d0-576b-4824-9ace-342a41eb55a1 Co-authored-by: WhitWaldo <2238529+WhitWaldo@users.noreply.github.com>
…-build-server flag Agent-Logs-Url: https://github.com/dapr/dotnet-sdk/sessions/b572e2d0-576b-4824-9ace-342a41eb55a1 Co-authored-by: WhitWaldo <2238529+WhitWaldo@users.noreply.github.com>
|
@copilot Please resolve the merge conflict |
…tion-test-examples # Conflicts: # all.sln Co-authored-by: WhitWaldo <2238529+WhitWaldo@users.noreply.github.com>
Resolved the merge conflict in |
|
@copilot Please fix the merge conflicts |
…lot/add-integration-test-examples # Conflicts: # all.sln Co-authored-by: WhitWaldo <2238529+WhitWaldo@users.noreply.github.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1792 +/- ##
==========================================
- Coverage 62.39% 62.37% -0.02%
==========================================
Files 285 285
Lines 8421 8421
Branches 980 980
==========================================
- Hits 5254 5253 -1
Misses 2935 2935
- Partials 232 233 +1
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:
|
WhitWaldo
left a comment
There was a problem hiding this comment.
Please remove the unnecessary test
| /// Verifies that the WorkflowUnitTest example's tests pass when executed. | ||
| /// </summary> | ||
| [Fact] | ||
| public async Task WorkflowUnitTestExample_ShouldPassTests() |
There was a problem hiding this comment.
This test is unnecessary
There was a problem hiding this comment.
Removed the WorkflowUnitTestExample_ShouldPassTests test and its RunDotnetTestAsync helper in e77d8de.
Agent-Logs-Url: https://github.com/dapr/dotnet-sdk/sessions/a71b0827-6644-4c80-9859-b5536c65cd59 Co-authored-by: WhitWaldo <2238529+WhitWaldo@users.noreply.github.com>
Description
Adds
test/Dapr.IntegrationTest.Examples— an xUnit test project that automatically discovers all.csprojfiles underexamples/and validates they compile against the current SDK source. This catches breaking API changes, missing types, and dependency issues before they ship.[Theory]runsdotnet build --framework net10.0on each example projectHosting/examples are excluded (external Aspire SDK NuGet deps, not testing source-level SDK compat)Issue reference
Checklist