Kingsrook .editorconfig, warnings as errors with analyzers (Meziantou), central package management with transitive pinning, locked restore in CI, nuget.org-only sources with package source mapping, and a coverage gate that checks every measured assembly when no package list is given. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: James Maes <james@kof22.com>
25 lines
1.3 KiB
XML
25 lines
1.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Coverage contract for the 100% gate (K22-TEST-10): every hand-written line of the
|
|
UI-free core and the command line counts. There is deliberately no Include filter:
|
|
coverlet measures the projects the unit tests reference whose sources are in this
|
|
repository (Core and the CLI), never test assemblies or NuGet packages, and an Include
|
|
filter would silently drop the CLI, whose assembly name (the app id) contains dashes.
|
|
Excluded, with intent:
|
|
- GeneratedCodeAttribute: source-generated JSON contexts and MVVM Toolkit members.
|
|
- ExcludeFromCodeCoverageAttribute: thin adapters a test cannot reach, each with a
|
|
justification at its declaration.
|
|
The WinUI project is not measured: its views need a live compositor and are covered
|
|
by the FlaUI tests. Logic belongs in Kof22App.Core instead. -->
|
|
<RunSettings>
|
|
<DataCollectionRunSettings>
|
|
<DataCollectors>
|
|
<DataCollector friendlyName="XPlat Code Coverage">
|
|
<Configuration>
|
|
<Format>cobertura</Format>
|
|
<ExcludeByAttribute>GeneratedCodeAttribute,ExcludeFromCodeCoverageAttribute</ExcludeByAttribute>
|
|
</Configuration>
|
|
</DataCollector>
|
|
</DataCollectors>
|
|
</DataCollectionRunSettings>
|
|
</RunSettings>
|