Skip to content
CLI Tools
Command

/add-test

Add a new test case to the test suite.

From plugin
mgrep
4.4k6 skills6 commands
> /plugin marketplace add mixedbread-ai/mgrep
> /plugin install mgrep@Mixedbread-Grep

Command definition

add-test.md

Add Test

Add a new test case to the test suite.

Arguments

  • `$ARGUMENTS` - Description of what to test (e.g., "search with empty query returns error")

Steps

1. Read the existing tests in `test/test.bats` to understand the current patterns.

2. Add a new test following this pattern:

   @test "$ARGUMENTS" {
     # Setup (if needed)

     # Execute
     run mgrep <command> <args>

     # Assert
     assert_success  # or assert_failure
     assert_output --partial "expected output"
   }

3. For long-running tests, add the tag:

   # bats test_tags=long-running
   @test "$ARGUMENTS" {
     ...
   }

4. Run the test to verify it works:

   bats test/test.bats --filter "$ARGUMENTS"

5. Ensure all tests still pass:

   pnpm test
@mixedbread-ai
Ships withmgrep

A calm, CLI-native way to semantically grep everything, like code, images, pdfs and more.

Stars on GitHub

Momentum

stars in total
4.4k
Star history of mixedbread-ai/mgrep on GitHub, a chart by star-history.com

Other commands on mgrep.

More commands from other plugins.

canvas

canvas

Command

Spawn interactive terminal canvases for calendars, documents, and flight booking

@dvdsgl@dvdsglInstall Command
debug-logs

debug-logs

Command

Analyze claudish debug logs from a failed model run. Extracts SSE fixtures, diagnoses failures, adds regression tests.

@madappgang@madappgangInstall Command