Testingο
Use this page as the quick testing entry point. The detailed contributor workflow still lives in Contributing.
Common Commandsο
Need |
Command |
|---|---|
Routine local regression pass |
|
Browser smoke for the main form flow |
|
Runtime guardrails |
|
Lint, formatting, license, and fast tests |
|
Broader docs/browser pre-push gate |
|
Coverageο
uv run poe test-fast runs the main non-WebKit suite, writes
cover/coverage.json, and refreshes the generated coverage map, reproduced below.
Use this generated map as a quick sense of which workflows are well covered before changing a
shared route or template. Percentages come from the latest poe test-fast pytest-cov JSON run.
Overall labfrog line coverage from that run: 80.00%.
Area |
Coverage |
Main tests |
Watch next |
|---|---|---|---|
Startup, auth, and request state |
Good |
|
Environment-specific branches and login provider edge cases |
Add Entry / Edit Entry |
Good |
|
Less common set-mode and shot-number backfeed branches |
Search Records |
Good |
|
Drag/resize-heavy browser behavior around plots |
Select Fields / Organize Sections |
Strong |
|
Campaign-mapped layout resolution across paired shot/set modes |
Parameters, diagnostics, and selectables |
Good |
|
Diagnostic preset detail round-trips and option de-duplication |
Init, reset, and operator tooling |
Good |
|
Real-service integration branches |
Test Areasο
Area |
Main tests |
|---|---|
Add/Edit Entry and navigation |
|
Saving, and not losing operator work |
|
Search Records |
|
Layout and management workflows |
|
App factory and the routing surface |
|
Database initialization and read-only protections |
|
Unattended MongoDB backup and retention |
|
MediaWiki and custom selectable adapters |
|
Kafka listener behavior |
|
Analysis configs and data access |
|
Runtime performance and benchmarks |
|
Docs and coverage tooling |
|
Browser smoke (WebKit) |
|
All paths are under tests/. This table is meant to cover the whole suite: if
you add a test module, add it to a row here.
Slower Or Optional Checksο
WebKit browser smoke tests use Playwright and cover Add/Edit form rendering, session-cookie reuse, and draft preservation across navigation. They are separated with the
webkitmarker.Kafka integration tests use Docker and are separated with the
kafkamarker.Benchmark runners are documented on the Benchmarks page.