T: T7 nushell test runner, devenv test script, command lists, docs testing section

This commit is contained in:
ari committed 2026-10-19 22:37:08 -04:00
1 parent 396c382046
commit 40cf1073f4
6 files changed
+452 -17

No files matched your search

+16
View File
@@ -9,6 +9,8 @@
pkgs.systemd
# Local OTLP collector for the telemetry workstream (G7).
pkgs.opentelemetry-collector-contrib
# Test runner (dev/test.nu).
pkgs.nushell
];
languages.rust.enable = true;
@@ -20,8 +22,22 @@
scripts.run.exec = ''cargo run -- "$@"'';
scripts.smoke.exec = "cargo test --test binary_smoke -- --nocapture";
scripts.token.exec = ''cargo run -- token "$@"'';
# `test unit`, `test integration`, `test lint`, `test vm`, `test all`, `test ci`.
scripts.test.exec = ''nu dev/test.nu "$@"'';
enterShell = ''
export CLAUDE_CONFIG_DIR="$(pwd)/.claude-account"
# Completion for the `test` runner in the shell that sourced this hook.
# Nushell loads the script itself and completes natively; zsh and bash get
# a generated script from the same command table.
if command -v nu >/dev/null 2>&1; then
if [ -n "''${ZSH_VERSION:-}" ]; then
source <(nu dev/test.nu completions zsh)
elif [ -n "''${BASH_VERSION:-}" ]; then
source <(nu dev/test.nu completions bash)
fi
echo "test runner: 'test --help'. Nushell: run 'use dev/test.nu *' for completion."
fi
'';
}