Add Stryker.NET mutation testing - #11
Merged
Merged
Conversation
Extract services, data, and entities into JunoBank.Core class library to enable mutation testing (Stryker can't compile Blazor projects due to Razor source generators). Namespaces preserved via RootNamespace. Baseline mutation score: 28.79% (350 killed / 562 tested mutants). CI runs mutation testing on every PR with downloadable HTML report. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
CI now posts a comment on every PR showing the mutation score compared to the baseline. Updates existing comment on re-runs. Baseline: 47.95% (339 detected / 707 total mutants) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Tzeetzch
approved these changes
Feb 17, 2026
🧬 Mutation Testing
What does this mean?Stryker mutates your code (flips conditions, removes lines, changes values) and runs tests against each mutation. Killed = tests caught it (good). Survived = tests missed it (weak spot). No Coverage = no test touches this code. Download the full HTML report from the Artifacts section below for per-file details. |
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
JunoBank.Coreclass libraryWhy
Stryker.NET can't compile Blazor projects (Razor source generators don't run during Stryker's Roslyn compilation). Extracting the service layer into a plain class library solves this while also improving architecture — business logic is now cleanly separated from the UI.
What changed
src/JunoBank.Core/— all services, entities, DbContext, migrations, utils, background services<RootNamespace>JunoBank.Web</RootNamespace>— zero code changes needed in existing filesBaseline mutation score
Test plan
🤖 Generated with Claude Code