Skip to content

Commit 3e1278f

Browse files
authored
git-bug: enable package tests (#471272)
2 parents 5f86f9d + b07524d commit 3e1278f

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

pkgs/by-name/gi/git-bug/package.nix

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
lib,
33
buildGoModule,
44
fetchFromGitHub,
5+
gitMinimal,
56
installShellFiles,
67
}:
78

@@ -20,7 +21,24 @@ buildGoModule rec {
2021

2122
nativeBuildInputs = [ installShellFiles ];
2223

23-
doCheck = false;
24+
nativeCheckInputs = [
25+
gitMinimal
26+
];
27+
28+
checkFlags =
29+
let
30+
integrationTests = [
31+
"TestValidateUsername/existing_organisation"
32+
"TestValidateUsername/existing_organisation_with_bad_case"
33+
"TestValidateUsername/existing_username"
34+
"TestValidateUsername/existing_username_with_bad_case"
35+
"TestValidateUsername/non_existing_username"
36+
"TestValidateProject/public_project"
37+
];
38+
in
39+
[
40+
"-skip=^${lib.concatStringsSep "$|^" integrationTests}$"
41+
];
2442

2543
excludedPackages = [
2644
"doc"

0 commit comments

Comments
 (0)