diff --git a/nix/buffrs.nix b/nix/buffrs.nix index cecc316d..64e4fb4e 100644 --- a/nix/buffrs.nix +++ b/nix/buffrs.nix @@ -37,5 +37,16 @@ in { # Audit licenses buffrs-deny = craneLib.cargoDeny { inherit src; }; + + # Rust unit and integration tests + buffers-nextest = craneLib.cargoNextest (commonArgs // { + inherit cargoArtifacts; + partitions = 1; + partitionType = "count"; + # Ignore tutorial test because it requires git and cargo to work + cargoNextestExtraArgs = + "--filter-expr 'all() - test(=cmd::tuto::fixture)'"; + SSL_CERT_FILE = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"; + }); }; }