Skip to content

Commit

Permalink
template: Add om tests
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Oct 8, 2024
1 parent 5a37245 commit f1fea51
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions nix/modules/template.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,27 @@
value = false;
}
];
tests = {
default = {
params = {
package-name = "qux";
author = "John";
author-email = "[email protected]";
};
asserts = {
source = {
"Cargo.toml" = true;
"flake.nix" = true;
".github/workflows/ci.yml" = true;
".vscode" = true;
"nix/modules/template.nix" = false;
};
packages.default = {
"bin/qux" = true;
};
};
};
};
};
};
}

0 comments on commit f1fea51

Please sign in to comment.