Files
Timmy-time-dashboard/tox.ini

24 lines
1.0 KiB
INI
Raw Normal View History

[tox]
envlist = unit, integration
skipsdist = true
[testenv]
allowlist_externals = poetry
commands_pre = poetry install --with dev --quiet
[testenv:unit]
description = Fast unit tests (no I/O, no external services)
commands = poetry run pytest tests/ -q --tb=short -m "unit and not integration and not ollama and not docker and not selenium and not external_api"
[testenv:integration]
description = Integration tests (may use SQLite, but no external services)
commands = poetry run pytest tests/ -q --tb=short -m "integration and not unit and not ollama and not docker and not selenium and not external_api"
[testenv:ollama]
description = Live LLM tests via Ollama (requires Ollama running with a tiny model)
commands = poetry run pytest tests/ -q --tb=short -m ollama --timeout=120
[testenv:coverage]
description = Run all tests with coverage reporting
commands = poetry run pytest tests/ -q --tb=short --cov=src --cov-report=term-missing --cov-fail-under=73 -p no:xdist -m "not ollama and not docker and not selenium and not external_api"