T: review round 1 fix runner argv, filter cache, and the test builtin
This commit is contained in:
1 parent
40cf1073f4
commit
6dade6239d
6 files changed
+562
-93
No files matched your search
+14
-12
@@ -22,22 +22,24 @@
|
||||
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`.
|
||||
# `devenv shell -- test unit|integration|lint|vm|all|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
|
||||
# Interactive bash only. `devenv shell -- …` is non-interactive, so its
|
||||
# stdout stays the command's own output, and the note goes to stderr.
|
||||
# This hook cannot install zsh functions (direnv would not keep them
|
||||
# either). zsh users source the completion script from .zshrc after
|
||||
# compinit; see docs/consolidator.md.
|
||||
case $- in
|
||||
*i*)
|
||||
if [ -n "''${BASH_VERSION:-}" ] && command -v nu >/dev/null 2>&1; then
|
||||
source <(nu dev/test.nu completions bash)
|
||||
echo "test runner: 'test <subcommand>' in this shell ('test -f' stays the builtin). From outside: devenv shell -- test <subcommand>." >&2
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
'';
|
||||
}
|
||||
Reference in new issue
Block a user