FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test: raise coverage; remove ancient Xamarin.Forms/UWP runners and Splat.Prism.Forms by glennawatson · Pull Request #1601 · reactiveui/splat · GitHub

test: raise coverage; remove ancient Xamarin.Forms/UWP runners and Splat.Prism.Forms - #1601

Merged
glennawatson merged 7 commits into
mainfrom
test/raise-coverage
Jun 12, 2026
Merged

test: raise coverage; remove ancient Xamarin.Forms/UWP runners and Splat.Prism.Forms#1601
glennawatson merged 7 commits into
mainfrom
test/raise-coverage

Conversation

Copy link
Copy Markdown
Contributor

Summary

Two independent changes:

1. Add unit-test coverage

Adds focused tests for previously under-covered code (all green locally):

  • Splat.Logging — SplatLoggerModule, SplatLogManagerModule, DebugLogger, WrappingPrefixLogger, ActionLogger, LogHost/LogHostExtensions, LoggingException
  • Splat.Microsoft.Extensions.Logging — registration extensions, MicrosoftExtensionsLogProvider, the builder module
  • Adapters (NLog / Log4Net / Exceptionless / Serilog) — MutableDependencyResolverExtensions and the IModule registration modules
  • Splat.Drawing — BitmapLoader, BitmapLoaderException, DefaultPlatformModeDetector, PlatformModeDetector, drawing initialization, SplatColor
  • APM — DefaultFeatureUsageTrackingSession, the enable-feature-usage-tracking extensions, FuncFeatureUsageTrackingManager

2. Remove ancient Xamarin.Forms / UWP projects

  • Delete Splat.TestRunner.Android (Xamarin.Forms) and Splat.TestRunner.Uwp test runners (both were already orphaned from Splat.slnx).
  • Delete Splat.Prism.Forms (the Xamarin.Forms Prism adapter) — Xamarin.Forms is end-of-life.
  • Clean up all references: InternalsVisibleTo entries in Splat.Core/Splat.Logging/Splat/Splat.Builder/Splat.Drawing, Splat.slnx, the Prism.Forms package version, and the development docs.

Not included: Splat.Prism.Maui

A MAUI replacement for Splat.Prism.Forms was investigated but deferred: Prism is now under a proprietary commercial license and its public packages are frozen at 9.0.537 (net8 MAUI only, Aug 2024). There is no net10/11 Prism.Maui on nuget.org to build against, so a supported MAUI adapter isn't currently possible.

…odules

Adds focused coverage tests across previously under-covered areas:
- Splat.Logging: SplatLoggerModule, SplatLogManagerModule, DebugLogger,
  WrappingPrefixLogger, ActionLogger, LogHost, LoggingException
- Splat.Microsoft.Extensions.Logging: extensions, log provider, module
- Splat.NLog / Log4Net / Exceptionless / Serilog: resolver extensions and
  IModule registration
- Splat.Drawing: BitmapLoader, BitmapLoaderException, mode detectors,
  drawing initialization, SplatColor
- Splat APM: DefaultFeatureUsageTrackingSession, the enable-tracking
  extensions, FuncFeatureUsageTrackingManager
…Forms

Splat.TestRunner.Android (Xamarin.Forms), Splat.TestRunner.Uwp, and the
Splat.Prism.Forms (Xamarin.Forms) adapter target frameworks that are no
longer supported. Remove the projects and clean up their references:
InternalsVisibleTo entries, Splat.slnx, the Prism.Forms package version,
and the development docs.
…po bumps

The net4*/netstandard targets pin a set of System.* compatibility packages
to their 4.x versions; Renovate's .NET monorepo v10 update (e.g. PR #1598)
tries to bump them (such as System.Runtime.Serialization.Formatters 4.3.0 ->
10.0.x in the net4 block), which breaks those targets. Add a packageRule that
caps System.* packages currently on 4.x below 5.0.0, leaving the modern 10.x
entries free to update.
# Conflicts:
#	src/Directory.Packages.props
#	src/Splat.Core/Splat.Core.csproj
#	src/Splat.Prism.Forms/PrismApplication.cs
- Removed Splat.Prism.Forms and related API references for outdated frameworks.
- Updated copyright headers across test files to reflect ReactiveUI Association Incorporated.
- Cleaned up PublicAPI definitions for removed components.
- Replaced inline literal values with named constants across test files for better readability and maintainability.
- Streamlined assertions and variable initializations in various logging, drawing, and resolver tests.
- Simplified disposable logger assertion in `NLogLoggerCoverageTests`.
- Added missing spacing for readability in `DebugLoggerCoverageTests`.
- Condensed builder initialization logic in `MicrosoftExtensionsLoggingExtensionsCoverageTests`.

codecov Bot commented Jun 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.30%. Comparing base (82072eb) to head (19dec03).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1601      +/-   ##
==========================================
+ Coverage   78.88%   82.30%   +3.42%     
==========================================
  Files         124      124              
  Lines        7036     7036              
  Branches     1080     1080              
==========================================
+ Hits         5550     5791     +241     
+ Misses       1172      937     -235     
+ Partials      314      308       -6     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown

glennawatson merged commit 4a1505b into main Jun 12, 2026
14 checks passed
glennawatson deleted the test/raise-coverage branch June 12, 2026 02:11

Copy link
Copy Markdown

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions Bot locked as resolved and limited conversation to collaborators Jun 27, 2026
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL