Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

fix(nix): give the devShell every tool the test suite shells out to (#3768)

Maximilian Roos497551e076eb
diff --git a/Cargo.toml b/Cargo.toml
index 479cd09c5..02aac882a 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -96,7 +96,7 @@ cli = [
"dep:tracing-subscriber",
]
syntax-highlighting = ["dep:tree-sitter-bash", "dep:tree-sitter-highlight"]
-# Enable shell/PTY integration tests (requires bash, zsh, fish installed on system)
+# Enable shell/PTY integration tests (needs bash, zsh, fish, nu, pwsh, and jq on PATH)
# Includes: shell wrapper tests, PTY-based approval prompts, TUI select, progressive rendering
shell-integration-tests = []
# Enable benchmarks whose fixture is too large for hosted CI: the
diff --git a/docs/content/faq.md b/docs/content/faq.md
index 990f4a292..565aaa4b2 100644
--- a/docs/content/faq.md
+++ b/docs/content/faq.md
@@ -287,7 +287,7 @@ This disables bash syntax highlighting in command output but keeps all core func
### Full integration tests
-Shell integration tests require bash, zsh, fish, and nushell:
+Shell integration tests require bash, zsh, fish, nushell, and pwsh, plus `jq`:
{{ terminal(cmd="cargo test --test integration --features shell-integration-tests") }}
diff --git a/flake.nix b/flake.nix
index 6017ea792..38cbe3552 100644
--- a/flake.nix
+++ b/flake.nix
@@ -150,8 +150,9 @@
# Wider src than the package build: tests need .snap files and
# tests/ fixtures (prebuilt _git/ trees, .sh scripts, no-extension
# git database files). Default features only — shell-integration-
- # tests requires zsh/fish/nushell + PTY (see CLAUDE.md → "Shell/PTY
- # Integration Tests").
+ # tests wants a PTY and more shells than this derivation carries;
+ # the devShell below is where that set lives (see tests/CLAUDE.md →
+ # "Feature Flags, Not Runtime Skipping").
worktrunk-tests = craneLib.cargoTest (
commonArgs
// {
@@ -200,10 +201,16 @@
cargo-release
cargo-llvm-cov
- # For shell integration tests
+ # Shells the `shell-integration-tests` feature drives, plus the
+ # `jq` its Claude-hook tests pipe the hook payload through. The
+ # pre-merge gate runs `--all-features`, so a run here exercises
+ # every one.
bash
zsh
fish
+ nushell
+ powershell
+ jq
# Development tools
git
diff --git a/plugins/worktrunk/skills/worktrunk/reference/faq.md b/plugins/worktrunk/skills/worktrunk/reference/faq.md
index b5a1246d4..34c7d9b6b 100644
--- a/plugins/worktrunk/skills/worktrunk/reference/faq.md
+++ b/plugins/worktrunk/skills/worktrunk/reference/faq.md
@@ -284,7 +284,7 @@ cargo test
### Full integration tests
-Shell integration tests require bash, zsh, fish, and nushell:
+Shell integration tests require bash, zsh, fish, nushell, and pwsh, plus `jq`:
```bash
cargo test --test integration --features shell-integration-tests
diff --git a/skills/worktrunk/reference/faq.md b/skills/worktrunk/reference/faq.md
index b5a1246d4..34c7d9b6b 100644
--- a/skills/worktrunk/reference/faq.md
+++ b/skills/worktrunk/reference/faq.md
@@ -284,7 +284,7 @@ cargo test
### Full integration tests
-Shell integration tests require bash, zsh, fish, and nushell:
+Shell integration tests require bash, zsh, fish, nushell, and pwsh, plus `jq`:
```bash
cargo test --test integration --features shell-integration-tests
diff --git a/tests/CLAUDE.md b/tests/CLAUDE.md
index 9ada4f06a..8f6e53933 100644
--- a/tests/CLAUDE.md
+++ b/tests/CLAUDE.md
@@ -427,7 +427,9 @@ fn test_fish_integration() {
- CI can enable features when dependencies are installed
**Existing feature flags:**
-- `shell-integration-tests` — Tests requiring bash/zsh/fish shells and PTY
+- `shell-integration-tests` — Tests that drive real shells over a PTY: bash,
+ zsh, fish, nushell, and pwsh, plus the `jq` the Claude hook commands in
+ `plugins/worktrunk/hooks/` pipe their payload through
## PTY Tests and README Examples