From ddcef5739f441a181e4c511c98587378d35408dd Mon Sep 17 00:00:00 2001 From: Per Stark Date: Wed, 8 Jul 2026 20:50:55 +0200 Subject: [PATCH] dev: ci integration tests --- CHANGELOG.md | 1 + html-router/tests/snapshots/authenticated_shell.snap | 1 + html-router/tests/snapshots/dashboard_main.snap | 1 + html-router/tests/snapshots/not_found_main.snap | 1 + html-router/tests/snapshots/search_main.snap | 1 + html-router/tests/snapshots/signin_page.snap | 1 + html-router/tests/snapshots/signup_page.snap | 1 + nix/build/cargo.nix | 4 +++- nix/modules/checks.nix | 7 ++----- 9 files changed, 12 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e0d1fc..1174f73 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ Fix: added helpers to deserialize datetime correctly, fixes bug where cant change systemsettings on fresh deployments. Infra: nix modularization using flake-parts, added lints and additional checks like statix and deadnix. +Infra: CI test gate now runs the full workspace suite (`cargo test --workspace`). ## 1.0.5 (2026-06-24) diff --git a/html-router/tests/snapshots/authenticated_shell.snap b/html-router/tests/snapshots/authenticated_shell.snap index 74b191c..7a61c04 100644 --- a/html-router/tests/snapshots/authenticated_shell.snap +++ b/html-router/tests/snapshots/authenticated_shell.snap @@ -1,5 +1,6 @@ --- source: html-router/tests/router_integration.rs +assertion_line: 298 expression: body --- diff --git a/html-router/tests/snapshots/dashboard_main.snap b/html-router/tests/snapshots/dashboard_main.snap index 85a3424..5dc00fd 100644 --- a/html-router/tests/snapshots/dashboard_main.snap +++ b/html-router/tests/snapshots/dashboard_main.snap @@ -1,5 +1,6 @@ --- source: html-router/tests/router_integration.rs +assertion_line: 307 expression: main --- diff --git a/html-router/tests/snapshots/not_found_main.snap b/html-router/tests/snapshots/not_found_main.snap index 4dc0d29..20c4697 100644 --- a/html-router/tests/snapshots/not_found_main.snap +++ b/html-router/tests/snapshots/not_found_main.snap @@ -1,5 +1,6 @@ --- source: html-router/tests/router_integration.rs +assertion_line: 325 expression: main --- diff --git a/html-router/tests/snapshots/search_main.snap b/html-router/tests/snapshots/search_main.snap index a61bd55..2bf1c71 100644 --- a/html-router/tests/snapshots/search_main.snap +++ b/html-router/tests/snapshots/search_main.snap @@ -1,5 +1,6 @@ --- source: html-router/tests/router_integration.rs +assertion_line: 316 expression: main --- diff --git a/html-router/tests/snapshots/signin_page.snap b/html-router/tests/snapshots/signin_page.snap index 5c0ed0f..57b64b0 100644 --- a/html-router/tests/snapshots/signin_page.snap +++ b/html-router/tests/snapshots/signin_page.snap @@ -1,5 +1,6 @@ --- source: html-router/tests/router_integration.rs +assertion_line: 283 expression: body --- diff --git a/html-router/tests/snapshots/signup_page.snap b/html-router/tests/snapshots/signup_page.snap index e1c216b..6b6cc27 100644 --- a/html-router/tests/snapshots/signup_page.snap +++ b/html-router/tests/snapshots/signup_page.snap @@ -1,5 +1,6 @@ --- source: html-router/tests/router_integration.rs +assertion_line: 290 expression: body --- diff --git a/nix/build/cargo.nix b/nix/build/cargo.nix index 2e2d406..05617b2 100644 --- a/nix/build/cargo.nix +++ b/nix/build/cargo.nix @@ -82,7 +82,9 @@ let (toString src + "/common/db") (toString src + "/html-router/templates") (toString src + "/html-router/assets") - ]; + (toString src + "/html-router/tests") + ] + || lib.hasSuffix ".snap" path; }; strictDeps = true; diff --git a/nix/modules/checks.nix b/nix/modules/checks.nix index 762b163..7bc2bce 100644 --- a/nix/modules/checks.nix +++ b/nix/modules/checks.nix @@ -1,7 +1,4 @@ -{ - versions, - ... -}: +{ versions, ... }: let inherit (versions) ortVersion; in @@ -67,7 +64,7 @@ in pname = "minne"; buildInputs = commonArgs.buildInputs ++ [ pkgs.cacert ]; SSL_CERT_FILE = "${pkgs.cacert}/etc/ssl/certs/ca-certificates.crt"; - cargoTestExtraArgs = "--lib --bins"; + cargoTestExtraArgs = "--workspace"; } );