You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(build): add test-all command and document test commands in CLAUDE.md
- Add `python build.py test-all` command to run unit + integration tests
- Update CLAUDE.md Testing section to document all test commands
- Add test commands section to Build, Run, and Packaging documentation
- Remove outdated "No automated test suite yet" statement
Co-Authored-By: Claude <noreply@anthropic.com>
@@ -88,11 +94,24 @@ Use the Python automation script for all build operations:
88
94
- You MUST EDIT the appropriate file in `docs/memory_aid/` after learning a new pattern or gotcha
89
95
90
96
## Testing and Validation
91
-
- No automated test suite yet; rely on `dotnet build` and manual verification in the DemoApp.
97
+
98
+
### Automated Tests (via build.py)
99
+
-`python build.py test` — Run unit tests (bUnit, excludes integration tests by default)
100
+
-`python build.py test <filter>` — Run tests matching filter (e.g., `python build.py test DebouncerTests`)
101
+
-`python build.py test-integration` — Run Playwright integration/smoke tests (auto-starts and stops DemoApp)
102
+
-`python build.py test-all` — Run all tests (unit first, then integration)
103
+
104
+
**Key Behaviors:**
105
+
-`test` excludes integration tests by default (fast, no app startup needed)
106
+
-`test-integration` automatically starts DemoApp if not running, runs tests, then stops it
107
+
-`test-all` runs unit tests first, then integration tests; fails fast if unit tests fail
108
+
- Tests live in `src/Flowbite.Tests/` — see `src/Flowbite.Tests/CLAUDE.md` for test patterns
109
+
110
+
### Manual Verification
92
111
- Exercise both light and dark themes, keyboard navigation, and key scenarios on the demo pages.
93
112
- When fixing bugs, reproduce them in the demo first, then validate the fix there.
94
113
- Ensure `src/Flowbite/wwwroot/flowbite.min.css` is regenerated as part of builds and committed whenever component styles change.
95
-
-**Non‑negotiable:** drive every meaningful UI verification through the Playwright MCP server (`mcp__playwright__browser_*`). Treat these scripted runs as mandatory—launch the DemoApp, navigate to the affected surface, and capture evidence (screenshots or DOM state) before calling a change “done.”
114
+
-**Non‑negotiable:** drive every meaningful UI verification through the Playwright MCP server (`mcp__playwright__browser_*`). Treat these scripted runs as mandatory—launch the DemoApp, navigate to the affected surface, and capture evidence (screenshots or DOM state) before calling a change "done."
96
115
97
116
## CSS Commits
98
117
**CRITICAL:** When Tailwind classes change, commit the generated CSS:
0 commit comments