Commit Graph

6 Commits

Author SHA1 Message Date
Fusion 3ccd94f661 feat: restructure test infrastructure with unit/integration/system separation
Test Organization:
- Create tests/unit/, tests/integration/, tests/system/ directories
- Move existing tests into appropriate categories
- Add pytest markers (@pytest.mark.unit, @pytest.mark.integration)

Shared Fixtures:
- Create conftest.py with SQLite engine (for unit tests)
- Add PostgreSQL session fixture with transaction rollback
- Add TestClient fixture for API tests

Configuration:
- Update pyproject.toml with asyncio_mode=auto
- Add test markers and default addopts
- Add aiosqlite dependency for SQLite support

E2E Testing:
- Initialize Playwright in e2e/ directory
- Add playwright.config.ts
- Create login flow E2E test

Build:
- Add test-unit, test-integration, test-system, test-e2e to Makefile
- Update test target to run all categories
- Add testing documentation to README

Note: Some tests have import issues due to missing python-jose
package in dev environment. This needs to be addressed separately.
2026-05-18 15:00:33 +02:00
alex e7819bfc82 feat: implement docker infrastructure (US-001)
- Add docker-compose.yml with postgres, redis, api, and web services
- Add multi-stage Dockerfile for API (Python 3.11)
- Add multi-stage Dockerfile for web (Node.js 20 + nginx)
- Add Makefile with common development commands
- Add .env.example with all required environment variables
- Add placeholder pyproject.toml and package.json for builds
- Configure health checks for all services
- Setup persistent volumes for postgres, redis, and repos
- Run services as non-root users
2026-05-16 17:44:39 +00:00
alex 533d50dd01 chore: clean up root configuration files
CI / Web CI (push) Failing after 9s
CI / API CI (push) Failing after 10s
- Remove redundant .npmrc (ignore-build-scripts=false is default)
- Remove Makefile (scripts available in package.json)
- Simplify root package.json:
  - Remove duplicate pnpm keys
  - Remove frontend-specific esbuild config (already in apps/web/package.json)
  - Remove version/description (not needed for private workspace root)
  - Remove compose scripts (use docker compose directly)
- Clean pnpm-workspace.yaml:
  - Remove placeholder allowBuilds comment
  - Remove onlyBuiltDependencies (handled per-workspace)
2026-05-16 14:14:41 +02:00
Fusion f81fea2297 feat(FN-002): complete Step 6 — Testing & Verification
Fusion-Task-Id: FN-002
Fusion-Task-Lineage: 49cb7077-d805-4d39-9a27-ae50744f2839
2026-05-14 07:47:29 +02:00
Fusion c6bf919344 fix(FN-002): remove invalid allowBuilds from pnpm-workspace.yaml and update clean target
Fusion-Task-Id: FN-002
Fusion-Task-Lineage: 49cb7077-d805-4d39-9a27-ae50744f2839
2026-05-14 07:47:29 +02:00
Fusion d74f77fd33 feat(FN-002): complete Step 1 — Root Monorepo Tooling and Repository Hygiene 2026-05-14 01:14:36 +02:00