passthru.tests
but for modules
#148364
Labels
0.kind: enhancement
2.status: stale
https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
6.topic: developer experience
6.topic: module system
About NixOS module system internals
6.topic: nixos
6.topic: testing
Tooling for automated testing of packages and modules
Describe the problem
Proposal
Use the module
meta
attribute to determine which tests exists and are applicable.A new option in
meta
could work similar to themeta.maintainers
module option in that it preserves the path of the defining module(s), which could be helpful for assigning unique names. Alternatively, we could just require module authors to enter a unique name for each test.The last item, "No way of figuring out which tests are relevant for a given configuration" also needs a minimal module list in order to make this solution work. Otherwise, you'll always get all the tests.
Notify maintainers
Metadata
Maintainer information:
The text was updated successfully, but these errors were encountered: