Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a dedicated repository smoke test layer for the executable examples under
Examples/CoreandExamples/Governance, so the shipped samples are built and exercised as part of a focused validation pass.Highlights
Example smoke test project
Tests/ModularityKit.Mutator.Examples.SmokeTestsproject instead of folding sample checks into the existing unit test suites.Examples/CoreandExamples/Governance.Examples/Core,Examples/Governance, andSupportso the coverage maps cleanly back to the sample projects.Runner behavior and failure reporting
stdoutandstderrand surface them in test failures so broken samples are easy to identify.Environment handling and sample-specific coverage
RedisQueriessmoke case instead of the generic runner.Why
Issue #53 is about keeping the executable examples trustworthy as documentation. The repository already ships a broad set of examples that represent intended public usage, but those samples can drift from the current API and runtime behavior if they are only exercised manually or incidentally during larger solution builds.
This PR adds a focused smoke layer that validates the sample entry points directly while keeping the coverage separate from the normal unit and governance test suites.
Checks
dotnet build Tests/ModularityKit.Mutator.Examples.SmokeTests/ModularityKit.Mutator.Examples.SmokeTests.csproj -c Debugdotnet test Tests/ModularityKit.Mutator.Examples.SmokeTests/ModularityKit.Mutator.Examples.SmokeTests.csproj -c Debug --no-buildCloses