docs: add E2E testing instructions to CONTRIBUTING.md
This commit is contained in:
parent
8cb0a59063
commit
552e937434
@ -23,7 +23,7 @@ Generate documentation locally:
|
||||
|
||||
```bash
|
||||
# Install docs dependencies
|
||||
uv sync --group dev
|
||||
uv sync --group docs
|
||||
|
||||
# Build HTML docs
|
||||
uv run mkdocs build
|
||||
@ -32,7 +32,31 @@ uv run mkdocs build
|
||||
uv run mkdocs serve
|
||||
```
|
||||
|
||||
Documentation is built automatically by CI and available in `site/` folder.
|
||||
Documentation is built automatically by CI.
|
||||
|
||||
---
|
||||
|
||||
## End-to-End Testing
|
||||
|
||||
E2E тесты требуют реальных credentials Kwork.ru:
|
||||
|
||||
```bash
|
||||
# 1. Скопируй шаблон
|
||||
cp tests/e2e/.env.example tests/e2e/.env
|
||||
|
||||
# 2. Заполни credentials
|
||||
nano tests/e2e/.env # KWORK_USERNAME, KWORK_PASSWORD
|
||||
|
||||
# 3. Запусти тесты
|
||||
uv run pytest tests/e2e/ -v
|
||||
|
||||
# С задержками (rate limiting)
|
||||
uv run pytest tests/e2e/ -v --slowmo=1
|
||||
```
|
||||
|
||||
⚠️ **Не запускай E2E в CI** — только локально с тестовым аккаунтом!
|
||||
|
||||
См. [tests/e2e/README.md](tests/e2e/README.md) для деталей.
|
||||
|
||||
## Branch Naming
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user