Skip to content

test: boost overall repository code coverage to 80.2% and all UI viewmodels above 80% - #27

Merged
spelech merged 4 commits into
mainfrom
feat/increase-code-coverage-above-80
Sep 1, 2026
Merged

spelech merged 4 commits into
mainfrom
feat/increase-code-coverage-above-80

Conversation

@spelech

@spelech spelech commented Sep 1, 2026

Copy link
Copy Markdown
Owner

Summary of Changes

  • Repository Line Coverage: Raised to 80.20% (7,401 / 9,228 lines), up from 75.01%.
  • Repository Branch Coverage: Raised to 62.85% (2,697 / 4,291 branches), up from 55.90%.
  • UI Components & ViewModels: Every ViewModel and UI control is now above 80.0% coverage (between 80.8% and 100.0%).
  • New Unit Test Suites:
    • \OllamaModelServiceTests.cs: Full coverage for endpoints, error recovery, proxy + daemon fallback deletions, and VRAM purge.
    • \HuggingFaceSearchViewModelTests.cs: Modality matrices, hardware badge recomputation, quantization model inspection.
    • \CivitaiSearchViewModelTests.cs: Search queries, hardware fit verdict filtering, download dispatch.
    • \OllamaLibraryViewModelTests.cs: Streaming progress parsing, model deletion confirmation, KV cache estimation slider.
  • Expanded Suites:
    • \CanIRunItViewModelTests.cs: Sizing calculation checks across all LLM, Diffusion, Video, Audio, and 3D presets.
    • \MainViewModelTests.cs: Video asset selection, gallery parsing, playback and loop toggle controls.
    • \BrowserLauncherTests.cs, \SearchServicesTests.cs, \ToolDiscoveryServiceTests.cs, \ServicesAndEngineManagerTests.cs.
  • All 517 unit tests passing cleanly with 0 failures.

@spelech
spelech merged commit 712cbac into main Sep 1, 2026
2 checks passed
@spelech
spelech deleted the feat/increase-code-coverage-above-80 branch September 1, 2026 03:14
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