mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-23 09:18:38 +02:00
dev/tests: add --attr
option to print full attrpath of tests
Allows using the `tests` devshell command to discover the full attrpath of a test. e.g. ``` $ tests --attr modules-lsp plugins-by-name-lazygit Printing 2 tests: modules-lsp plugins-by-name-lazygit Full attr paths: - checks.x86_64-linux.test-2.entries.modules-lsp - checks.x86_64-linux.test-18.entries.plugins-by-name-lazygit ```
This commit is contained in:
parent
f4a7447d27
commit
14c7f5f896
2 changed files with 21 additions and 5 deletions
|
@ -61,8 +61,8 @@
|
|||
checkName:
|
||||
map (testName: {
|
||||
name = testName;
|
||||
value = "${checkName}.passthru.entries.${testName}";
|
||||
}) (builtins.attrNames checks'.${checkName}.passthru.entries)
|
||||
value = "${checkName}.entries.${testName}";
|
||||
}) (builtins.attrNames checks'.${checkName}.entries)
|
||||
) names
|
||||
);
|
||||
in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue