Skip to content

Development and Testing

Krishnendu Bhattacherjee edited this page Nov 10, 2026 · 2 revisions

Development and Testing

python -m pytest -q
cd dashboard
npm ci
npm test
npm run build
cd ..

Ordinary pytest blocks real network calls, including when credentials are present. YARA containment tests use harmless bytes and local TCP/UDP receivers only; they verify denial against a working local positive control without external hosts. Run focused checks with python -m pytest -q -x --tb=short tests/test_yara.py tests/test_yara_windows.py. With the optional wheel installed on Windows these include actual isolated scans and OS probes; without it they check graceful absence rather than native behavior. Groq wire/schema tests use injected senders or MockTransport. Shared privacy/cache/ provenance tests use a neutral test-only transport; it is not a production provider. Live provider commands are manual and separate from tests. The latest verified suite and counts are recorded in the migration report and TASKS.md.

The CI workflow runs backend and dashboard checks, PostgreSQL-backed tests, dependency and secret scans, and generates SBOMs. Ruff and mypy gates currently cover limited scopes; Bandit reports findings and gates high-severity results. The badge at the top links to the hosted workflow and its current status on GitHub.

Wiki home · Project README

Clone this wiki locally