xiaohongshu
xiaohongshu
analyze-test-results
Analyze test failures and CI artifacts to identify and fix bugs
Full skill instructions
Analyze test results from CI or local runs to identify failures, diagnose root causes, and fix bugs.
/download-ci-artifacts# From CI artifacts
cat ci-artifacts/test-report/test-report.md
# From local run
uv run pytest MouseMaster/Testing/Python/ -v --tb=long 2>&1 | tee test-output.log
# Extract failed tests from XML
grep -E "(failure|error)" ci-artifacts/unit/unit-tests.xml | head -20
FAILED MouseMaster/Testing/Python/test_event_handler.py::TestClass::test_name
Understand what the test expects:
Find the code being tested and understand:
Common issues:
Apply the minimal fix needed:
# If test expectation is wrong
# → Update the test
# If implementation is wrong
# → Fix the implementation, re-run tests
# If mock setup is incomplete
# → Add proper mock configuration
# Run specific failing test
uv run pytest MouseMaster/Testing/Python/test_file.py::TestClass::test_name -v
# Run full suite
uv run pytest MouseMaster/Testing/Python/ -v
cat ci-artifacts/slicer/slicer-output.log
| Error | Cause | Fix |
|---|---|---|
ModuleNotFoundError | Extension not loaded | Check module paths |
AttributeError: 'NoneType' | Widget not ready | Add processEvents() |
RuntimeError: widget deleted | View closed | Check object lifetime |
Qt assertion | Invalid UI operation | Run on main thread |
If screenshots captured, review with:
# View manifest
cat ci-artifacts/screenshots/manifest.json
# Then use /review-ui-screenshots skill
After analysis:
## Test Analysis Report
### Failures Found
| Test | Error | Root Cause |
|------|-------|------------|
| test_name | AssertionError | Incorrect mock setup |
### Fixes Applied
- `file.py:123` - Fixed mock configuration
- `test.py:45` - Updated assertion
### Remaining Issues
- Issue requiring further investigation
### Verification
- [ ] All tests pass locally
- [ ] Lint passes
- [ ] Type check passes
After fixing:
/run-tests to verifyfix: description of fix/download-ci-artifacts - Get artifacts first/review-ui-screenshots - Analyze UI issues/fix-bad-practices - Fix code quality issuesxiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience