Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module tests #731

Closed
domenkozar opened this issue Jul 15, 2023 · 1 comment · Fixed by #1005
Closed

module tests #731

domenkozar opened this issue Jul 15, 2023 · 1 comment · Fixed by #1005
Labels
enhancement New feature or request

Comments

@domenkozar
Copy link
Member

domenkozar commented Jul 15, 2023

We could add module tests declaratively like this:

{ pkgs, ... }: {

  tests.foo  = {
   nix = ''{ pkgs, ... }: {}'';
   yaml = "...";
   test = ''
   '';
  };
}

And then have a devenv test that collects and runs them.

@domenkozar domenkozar added the enhancement New feature or request label Jul 15, 2023
@domenkozar
Copy link
Member Author

domenkozar commented Jul 19, 2023

Note that there should also be a way to test the devenv, by running a script and devenv up. There's quite some overlap here.

EDIT: probably we should just start devenv up if any processes are defined.

@domenkozar domenkozar mentioned this issue Jul 29, 2023
7 tasks
@domenkozar domenkozar mentioned this issue Mar 11, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant