kubenix/test/default.nix

30 lines
509 B
Nix
Raw Normal View History

2019-02-12 16:22:18 +01:00
{ 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
2019-02-12 17:40:09 +01:00
./submodules/simple.nix
2019-02-12 16:22:18 +01:00
];
}
];
args = {
inherit pkgs;
};
specialArgs = {
inherit kubenix;
};
}).config.testing.result