Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By bradleygoldenv1.2.1MITIn 1 marketplace
Blocks git commits when ExUnit tests fail, running only tests for changed Elixir modules. Hook runs before every git commit and skips non-Mix projects; it skips if the project defines a precommit alias.
Trending plugins
7-day copy clicks
Run automatically on Claude Code events. Claude doesn't decide.
Public GitHub repos that commit this plugin as enabled in their Claude Code settings
1 caution to review before installing
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
ExUnit testing automation plugin that validates tests pass before git commits.
This plugin automatically runs ExUnit tests before git commits, preventing broken code from being committed. It uses mix test --stale to intelligently run only tests for modules that have changed, keeping validation fast and efficient.
/plugin marketplace add github:bradleygolden/claude-marketplace-elixir
/plugin install ex_unit@elixir
When it runs: Before any git commit command
What it does: Runs mix test --stale to validate tests pass for changed modules
Behavior:
--stale flag)Performance: Typically 5-30 seconds depending on number of changed modules
--stale FlagThe key to performance is ExUnit's --stale flag, which only runs tests for modules that have been modified since the last test run. This means:
Hook Type: PreToolUse (blocks before bash commands execute)
Matcher: Filters for git commit commands only
Timeout: 60 seconds
Note: Skips if project has a precommit alias (defers to precommit plugin)
Blocking Behavior:
0 (success)permissionDecision: "deny"Once installed, the plugin works automatically:
# Make changes to your code
$ edit lib/accounts.ex
$ edit test/accounts_test.exs
# Try to commit
$ claude
> commit these changes
# Plugin runs automatically
Running stale tests for changed modules...
# If tests pass:
✓ Tests passed
[Commit proceeds]
# If tests fail:
✗ 1 test failed
1) test creates user (MyApp.AccountsTest)
test/accounts_test.exs:12
Expected: {:ok, %User{}}
Got: {:error, :invalid}
⚠️ Commit blocked. Fix failing tests before committing.
No configuration needed! The plugin:
mix.exs)test/)The plugin runs tests only when:
git commit (not status, add, etc.)test/ directoryIt skips for:
The --stale flag makes this fast, but you can optimize further:
# Before committing, run full suite yourself
$ mix test
# Then commit - stale detection means nothing runs again
$ git commit -m "message"
async: true in test modules when possiblesetup blocks efficientlySince only changed tests run, frequent commits keep validation fast
If tests exceed 60 seconds, they'll timeout. This usually means:
--stale)Solution: Run mix test --stale manually to see which tests are slow
This shouldn't happen, but if it does:
mix compilels test/mix test --staleThe plugin blocks commits with failing tests intentionally. Options:
/plugin uninstall ex_unit@elixir--no-verify flag: Not recommended, bypasses all hooks# Edit one file
$ edit lib/accounts.ex
# Only accounts_test.exs runs (2-5 seconds)
$ git commit -m "update accounts"
Running stale tests...
1 test file, 5 tests, 0 failures
✓ Tests passed
# Edit several files
$ edit lib/accounts.ex lib/users.ex lib/posts.ex
# Three test files run (10-20 seconds)
$ git commit -m "update multiple modules"
Running stale tests...
3 test files, 24 tests, 0 failures
✓ Tests passed
# Break a test
$ edit test/accounts_test.exs
$ git commit -m "broken test"
Running stale tests...
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub bradleygolden/claude-marketplace-elixir --plugin ex_unitPlugins from other owners that cover similar ground