Add tests for CLI entry point and scoring functionality; enhance service layer tests for similar units

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Ole
2026-05-26 13:54:58 +00:00
parent 22f30ebf00
commit 2933b8c1ea
7 changed files with 865 additions and 5 deletions
+14
View File
@@ -22,6 +22,13 @@ test: ## Run the full test suite
test-fast: ## Run tests, fail fast, verbose
$(BIN)/pytest -x -v
coverage: ## Run tests with coverage report
$(BIN)/pytest --cov=finn_eiendom --cov-report=term-missing --cov-report=html
@echo "Open htmlcov/index.html to browse coverage"
coverage-check: ## Fail if coverage below 100%
$(BIN)/pytest --cov=finn_eiendom --cov-fail-under=100
lint: ## Lint with ruff
$(BIN)/ruff check .
@@ -45,3 +52,10 @@ mcp: ## Start the MCP server over stdio
doctor: ## Smoke-check the install
$(BIN)/finn-eiendom doctor
docker: ## Build a Docker image for the MCP server
docker build -t finn-mcp:latest .
docker-run: docker ## Run the MCP server in Docker, exposing port 8010
docker compose -f docker-compose.prod.yml down
docker compose -f docker-compose.prod.yml up -d