fs-skia-testing
Work on generated product and package validation helper contracts.
- License 许可
- MIT
- 最近更新
- 2026-06-16
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- fs-skia-testing
- description
- Work on generated product and package validation helper contracts.
03 SKILL.md 正文
Testing Capability
Scope
Owns src/Testing/, testing helper contracts, template/fragments/testing/, and generated product validation helper guidance.
Public Contract
The supported API lives in src/Testing/Testing.fsi. Surface changes require readiness/surface-baselines/FS.Skia.UI.Testing.txt.
Build Commands
Run ./fake.sh build -t CapabilityCheck, ./fake.sh build -t PackageSurfaceCheck, and ./fake.sh build -t PackLocal.
Test Commands
Run dotnet test tests/Testing.Tests/Testing.Tests.fsproj and ./fake.sh build -t GeneratedProductCheck.
Evidence
Record helper surface evidence under the active feature readiness
package-surface reports. Stable public surface baselines live under
readiness/surface-baselines/.
Package Boundary
Testing helpers must not pull broad framework implementation projects into generated products.
Generated Product
Testing is available to governed products when selected and should stay product-validation focused.
Runnable example
Open the package namespace and build a generated-product validation evidence report:
open FS.Skia.UI.Testing
let report =
EvidenceReports.build
{ Status = EvidenceOk
Command = "dotnet test"
OutputPath = Some "readiness/generated-product.md"
Fields = [ EvidenceReports.field "profile" "app" ] }
let validation = EvidenceReports.validate report
printfn "accepted=%b status=%s" validation.Accepted (EvidenceReports.statusText report.Status)
Persistent problems
When a problem outlasts reasonable in-repo attempts, extensive external research is
mandatory — consult official online docs first (the F#/.NET docs and the driven
library's own documentation/API reference), then community sources (forums, Reddit, Q&A
sites, issue trackers and changelogs). Record the findings and resolving links in the
feature's specs/<feature>/feedback/ folder and, for durable lessons, in this skill's
Sources line. Offline, the mandate degrades to recording "research blocked — <why>"
rather than hard-failing the phase.
Related
- [[fs-skia-scene]] supplies the
LayoutEvidenceReporttypes these helpers validate. - [[fsharp-build-orchestration]] runs the governed targets these helpers back.
Sources / links
- F#/.NET docs: https://learn.microsoft.com/en-us/dotnet/fsharp/
- Expecto (the F# test framework used by generated products): https://github.com/haf/expecto
04 同仓库更多 Skills
fs-skia-ui-widgets
Generated product guidance for Skia-rendered FS.Skia.UI Controls, rich text, chart controls, graph controls, DataGrid, and custom wrappers.
fs-skia-testing
Assert generated-product expectations and evidence in a governed FS.Skia.UI product.
fs-skia-skiaviewer
Wire a generated FS.Skia.UI product to the desktop viewer host.
fs-skia-scene
Build pure scene descriptions in a generated FS.Skia.UI product.
fs-skia-keyboard-input
Map keyboard input to product commands in a generated FS.Skia.UI product.
fs-skia-elmish
Drive a generated FS.Skia.UI product through the pure Elmish adapter.