Agent skill
testing-wpf
Create and maintain WPF UI tests and ViewModel tests for the .NET 8 widget host app. Use when setting up UI automation, testing MVVM logic, or building a test harness for widgets and the shell.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/testing-wpf
SKILL.md
Testing Wpf
Overview
Cover UI behavior and ViewModel logic without coupling tests to WPF internals.
Core areas
- ViewModel unit tests
- UI automation tests
- Test harness for widget windows
Definition of done (DoD)
- ViewModels tested via WidgetTestHarness with NoOp service implementations
- Commands tested for execute and can-execute behavior
- State changes tested through observable property assertions
- No tests depend on actual WPF runtime (prefer ViewModel tests)
- Test harness updated when new services are added
Workflow
- Write ViewModel tests for commands, state, and validation.
- Use UI automation sparingly for critical flows.
- Keep UI tests stable by controlling test data and timings.
- Build a test harness that can host widgets and shell views.
Guidance
- Prefer ViewModel tests over UI automation where possible.
- Avoid fragile selector strategies in UI tests.
- Keep test runs isolated from user desktop state.
References
references/ui-testing.mdfor UI automation strategy.references/viewmodel-tests.mdfor MVVM test patterns.references/test-harness.mdfor widget test host setup.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?