29 lines
737 B
Markdown
29 lines
737 B
Markdown
# Testen
|
|
|
|
Backend:
|
|
|
|
cd lumaops/backend
|
|
python -m ruff format --check src tests
|
|
python -m ruff check src tests
|
|
python -m mypy src
|
|
python -m pytest
|
|
|
|
Frontend:
|
|
|
|
cd lumaops/frontend
|
|
npm ci
|
|
npm run lint
|
|
npm run test
|
|
npm run build
|
|
npm audit
|
|
|
|
Productie:
|
|
|
|
docker compose build --pull
|
|
docker compose up -d
|
|
docker compose ps
|
|
docker exec lumaops /opt/venv/bin/python /opt/lumaops/healthcheck.py
|
|
|
|
Gebruik CONNECTOR_MODE=mock uitsluitend met LUMAOPS_ENV=test of development. De Settings-validatie weigert mockmodus in productie en de UI toont een permanente waarschuwing. Fysieke tests beginnen met inventory en daarna één statische kleur op lage frequentie.
|
|
|