kube-ui-testing
Skill327 starsChanged 2 months agoMITView on GitHub
Run and target KubeUI tests from the command line with Microsoft.Testing.Platform, including project, solution, class, and method selection.
In this repository2 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ilspy-decompileSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 3 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use this skill for KubeUI test runs, focused test selection, test-result diagnosis, and adding tests for new behavior.
- Very specific: line 10
Run commands from the repository root.
- Distinctive: line 20
Run the narrowest relevant test scope first, then widen to the project or solution when the focused run passes.
- Very specific: line 21
Treat a run that executes zero tests as invalid validation.
- Distinctive: line 45
Use the project target with a fully qualified class filter:
- Distinctive: line 59
Use a fully qualified method filter:
- Very specific: line 65
Use the fully qualified class or method name returned by --list-tests when selecting another target.
- Very specific: line 80
Use [AvaloniaFact] only for tests that require Avalonia.
- Very specific: line 81
Do not use Task.Delay or Thread.Sleep.
- Very specific: line 83
Use the production Kubernetes client with the shared fake transport for deterministic local tests.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
KubeUI testing
Use this skill for KubeUI test runs, focused test selection, test-result diagnosis, and adding tests for new behavior.
Run commands from the repository root. KubeUI targets .NET 10 and opts into Microsoft.Testing.Platform through global.json; tests use xUnit v3.
Required test workflow
Build before running tests:
dotnet build KubeUI.slnx --tl:off -clp:ErrorsOnly- Run the narrowest relevant test scope first, then widen to the project or solution when the focused run passes.
- Treat a run that executes zero tests as invalid validation. Use
--minimum-expected-tests 1for focused runs and verify the output reports a nonzero count. - For a bug, add the failing regression first, confirm it fails, implement the fix, and rerun the same regression before broader validation.
CLI examples
The examples use KubeUI.Avalonia.Tests as “project A”,
KubeUI.Avalonia.Tests.Converters.PropertyItemValueConverterTests as “class A”,
and converts_utc_datetime_to_local_time as “test A”. Replace them with the
real project, fully qualified class, and method names for the change.
Test project A
dotnet test --project tests/KubeUI.Avalonia.Tests/KubeUI.Avalonia.Tests.csproj --no-restore --minimum-expected-tests 1Test all projects
dotnet test --no-restore --minimum-expected-tests 1Test project A, class A
Use the project target with a fully qualified class filter:
dotnet test --project tests/KubeUI.Avalonia.Tests/KubeUI.Avalonia.Tests.csproj --no-restore --filter-class KubeUI.Avalonia.Tests.Converters.PropertyItemValueConverterTests --minimum-expected-tests 1Test project A, test A
List tests from the project when the exact generated name is uncertain:
dotnet test --project tests/KubeUI.Avalonia.Tests/KubeUI.Avalonia.Tests.csproj --no-restore --list-testsUse a fully qualified method filter:
dotnet test --project tests/KubeUI.Avalonia.Tests/KubeUI.Avalonia.Tests.csproj --no-restore --filter-method KubeUI.Avalonia.Tests.Converters.PropertyItemValueConverterTests.converts_utc_datetime_to_local_time --minimum-expected-tests 1Use the fully qualified class or method name returned by --list-tests when selecting another target.
Coverage and hang detection
Coverage collection and hang detection are enabled by the repository’s testconfig.json, which is automatically added to test projects by Directory.Build.props.
- Coverage is collected in Cobertura format under
TestResults. - Hang dumps are enabled with a one-minute timeout. Crash dumps and TRX reports are enabled too.
Inspect the generated *.cobertura.xml for line and branch rates. Collection being enabled does not by itself enforce a threshold.
Every new feature must include behavior-focused tests that cover at least 90% of the affected code and contribute to keeping the codebase at or above 90% coverage. Do not inflate the number with implementation-only assertions; cover meaningful branches, failure paths, and user-visible behavior. Report any uncovered code and the measured line/branch percentages.
KubeUI test rules
- Use
[AvaloniaFact]only for tests that require Avalonia; use[Fact]or[Theory]for pure model, serialization, transport, and service tests. - Do not use
Task.DelayorThread.Sleep. Wait on an observable state, event, informer completion, or another bounded predicate. - Pass
TestContext.Current.CancellationTokenthrough cancellable async operations and bound every wait. - Use the production Kubernetes client with the shared fake transport for deterministic local tests. Use the shared fake/Kind matrix for backend parity; Kind cases require
KUBEUI_RUN_KIND_TESTS=1. - Dispose test-owned scopes, workspaces, and view models in the test that creates them.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

