mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-13 00:20:07 +01:00
feat: initial testing support
This commit is contained in:
parent
e286c9b0e8
commit
9f8ca8447e
6 changed files with 362 additions and 127 deletions
28
test/default.nix
Normal file
28
test/default.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ pkgs ? import <nixpkgs> {}
|
||||
, kubenix ? import ../. {inherit pkgs;}
|
||||
, lib ? kubenix.lib
|
||||
|
||||
# whether any testing error should throw an error
|
||||
, throwError ? true }:
|
||||
|
||||
with lib;
|
||||
|
||||
(evalModules {
|
||||
modules = [
|
||||
./modules/testing.nix
|
||||
|
||||
{
|
||||
testing.throwError = throwError;
|
||||
testing.tests = [
|
||||
./k8s/simple.nix
|
||||
./k8s/deployment.nix
|
||||
];
|
||||
}
|
||||
];
|
||||
args = {
|
||||
inherit pkgs;
|
||||
};
|
||||
specialArgs = {
|
||||
inherit kubenix;
|
||||
};
|
||||
}).config.testing.result
|
||||
Loading…
Add table
Add a link
Reference in a new issue