Skip to content

feat: add bUnit component test project - #39

Open
PeterKruithof wants to merge 1 commit into
masterfrom
feat/bunit-component-tests
Open

feat: add bUnit component test project#39
PeterKruithof wants to merge 1 commit into
masterfrom
feat/bunit-component-tests

Conversation

@PeterKruithof

Copy link
Copy Markdown
Collaborator

Summary

  • Adds JunoBank.Web.Tests project with 21 bUnit tests for 3 shared components
  • Demonstrates 3 test patterns: presentational (ChildCard), stateful (PictureGrid), service-injected (TransactionList)
  • Includes ComponentTestBase with MudBlazor setup and mock helpers
  • Updates docs/TESTING.md with bUnit section, patterns, and when-to-use guidance

Test plan

  • All 21 bUnit tests pass (dotnet test in tests/JunoBank.Web.Tests/)
  • All 160 existing unit tests still pass (dotnet test in tests/JunoBank.Tests/)
  • CI passes

🤖 Generated with Claude Code

Adds JunoBank.Web.Tests with 21 bUnit tests covering 3 component patterns:
- ChildCard (presentational): 6 tests
- PictureGrid (stateful): 7 tests
- TransactionList (service-injected): 8 tests

Includes ComponentTestBase with MudBlazor setup and docs update.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@PeterKruithof
PeterKruithof enabled auto-merge March 2, 2026 12:11
@github-actions

github-actions Bot commented Mar 2, 2026

Copy link
Copy Markdown

🧬 Mutation Testing

Metric Value
Score 54.8% 📈 (+6.85% vs baseline)
Killed 347
Survived 161
No Coverage 126
Timeout 1
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.

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.

1 participant