← ClaudeAtlas

exunit-test-frameworklisted

Execute and generate ExUnit tests for Elixir projects with setup callbacks, describe blocks, and async testing support
FortiumPartners/ensemble · ★ 10 · Testing & QA · score 75
Install: claude install-skill FortiumPartners/ensemble
# ExUnit Test Framework ## Purpose Provide ExUnit test execution and generation for Elixir projects, supporting: - Test file generation from templates (_test.exs files) - Test execution with Mix test integration - Setup and setup_all callbacks - Describe blocks for test organization - Async testing support ## Usage ### Generate Test File Create a test file from a bug report or feature description: ```bash elixir generate-test.exs \ --source lib/calculator.ex \ --output test/calculator_test.exs \ --module Calculator \ --description "Division by zero error" ``` ### Execute Tests Run ExUnit tests and return structured results: ```bash elixir run-test.exs \ --file test/calculator_test.exs \ --format json ``` ## Command Line Options ### generate-test.exs - `--source <path>` - Source file to test (required) - `--output <path>` - Output test file path (required) - `--module <name>` - Module name to test (required) - `--description <text>` - Bug description or test purpose - `--async` - Enable async testing (default: false) ### run-test.exs - `--file <path>` - Test file to execute (required) - `--format <json|doc>` - Output format (default: json) - `--trace` - Run with detailed trace ## Output Format ### Test Generation Returns JSON with generated test file information: ```json { "success": true, "testFile": "test/calculator_test.exs", "testCount": 1, "template": "unit-test", "async": false } ``` ### Test Execution Returns JSON with test resu