kfj001
|
eae0bffc89
|
ci: add branch trigger rules and improve quality gate
- Add rules to trigger pipeline on push to main/develop branches
- Separate stages: test, lint, build, gate
- Quality gate explicitly depends on backend-test passing
- Remove hardcoded DB credentials from CI variables
- Fix frontend-test before_script (remove hardcoded CI_PROJECT_PATH)
|
2026-07-29 11:16:16 +00:00 |
|
Hermes Agent
|
501df79e5c
|
feat: add test framework, unit tests, and GitLab CI pipeline
- Add pytest config in backend/pyproject.toml with asyncio mode and coverage
- Add backend/requirements-test.txt with pytest, pytest-cov, pytest-asyncio, aiosqlite
- Write 86 backend unit tests covering auth (JWT tokens), schemas (Pydantic
models), config (Settings env overrides), log_parser (log parsing, IP
resolution, geo data), models (SQLAlchemy table definitions + column
defaults), and theme export
- Add Vitest config for Angular frontend (vitest.config.ts, src/test-setup.ts)
- Add .gitlab-ci.yml with stages: backend-test, frontend-test, backend-lint,
docker-build, and quality-gate
- CI enforces 10% minimum coverage threshold for backend
|
2026-07-29 08:34:42 +00:00 |
|