diff --git a/flake.nix b/flake.nix index cf4f328..446455e 100644 --- a/flake.nix +++ b/flake.nix @@ -50,17 +50,11 @@ buildInputs = with pkgs; [ openssl ]; - # Skip tests that require git in PATH (sandboxing issue) - # These tests run fine in dev environment and CI - checkFlags = [ - # Unit tests that spawn git subprocesses - "--skip=git::subprocess::tests::" - "--skip=git::tests::" - "--skip=purgatory::helpers::tests::" - # Integration tests that create git repos - "--skip=common::git_server::" - "--skip=common::purgatory_helpers::" - ]; + # Skip all integration tests during Nix build (require git in PATH) + # Integration tests run in dev environment and CI where git is available + doCheck = true; + cargoTestFlags = + [ "--lib" ]; # Only run unit tests, skip integration tests }; })) // { # NixOS module for deployment diff --git a/nix/module.nix b/nix/module.nix index 23b1561..1cbeb27 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -18,17 +18,10 @@ let nativeBuildInputs = with pkgs; [ pkg-config ]; buildInputs = with pkgs; [ openssl ]; - # Skip tests that require git in PATH (sandboxing issue) - # These tests run fine in dev environment and CI - checkFlags = [ - # Unit tests that spawn git subprocesses - "--skip=git::subprocess::tests::" - "--skip=git::tests::" - "--skip=purgatory::helpers::tests::" - # Integration tests that create git repos - "--skip=common::git_server::" - "--skip=common::purgatory_helpers::" - ]; + # Skip all integration tests during Nix build (require git in PATH) + # Integration tests run in dev environment and CI where git is available + doCheck = true; + cargoTestFlags = [ "--lib" ]; # Only run unit tests, skip integration tests }; # Per-instance options