This page summarizes the test entry points that are useful during development and review.
From the workspace root, use the package's normal ROS test flow:
colcon test --packages-select flexbe_webui
colcon test-result --verboseIf you are already in the package root, the main Python test suites can also be run directly:
pytest -qThe browser-free frontend regression harness covers key UI logic without launching a browser.
It requires node to be available on PATH; otherwise the corresponding pytest modules are skipped.
Run the full suite from the repository root:
pytest -q test/test_frontend_regressions.pyRun an individual harness case directly with Node.js:
node test/frontend_regression_runner.js settings_flows
node test/frontend_regression_runner.js runtime_flows
node test/frontend_regression_runner.js events_flowsThis dedicated harness focuses on runtime controller and pub/sub ordering behavior.
It also requires node on PATH; if node is unavailable, the pytest wrapper skips these cases.
Run the full suite:
pytest -q test/test_frontend_rc_regressions.pyRun a single case directly:
node test/frontend_rc_regression_runner.js heartbeat_ordering
node test/frontend_rc_regression_runner.js ready_orderingThe browser smoke test is optional and intended for local developer use.
It is skipped unless RUN_BROWSER_SMOKE=1 is set.
Run it from the repository root with:
RUN_BROWSER_SMOKE=1 pytest -q test/test_browser_smoke.pyPrerequisites:
- Install the Python package:
pip install playwright - Install a browser for Playwright:
python3 -m playwright install chromium
These targeted suites are useful when you are working in one area of the codebase:
pytest -q test/test_api_security.py
pytest -q test/test_api_contract.py
pytest -q test/test_command_endpoint_shapes.py
pytest -q test/test_behavior_code_generation.py
pytest -q test/test_smoke_server.pycolcon testis still the primary package-level validation path.- The frontend Node harnesses are intended to catch UI regressions that are hard to cover with backend tests alone.
- The optional browser smoke test is for local confidence, not normal CI/build-farm execution.