elixir-test-runner

Runs Elixir ExUnit tests with filtering by file, line, tag, and pattern.

10|2|Updated Oct 24, 2025
One-click install
npx skills add https://github.com/mkreyman/bmad-elixir --skill elixir-test-runner
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: elixir-test-runner
Source: https://github.com/mkreyman/bmad-elixir/tree/main/priv/skills/elixir-test-runner
Command: npx skills add https://github.com/mkreyman/bmad-elixir --skill elixir-test-runner

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps run ExUnit tests with smart filtering, debugging options, and precise error reporting.

Core Features & Use Cases

  • Targeted Test Runs: Run all tests, files, or line-number-specific tests.
  • Pattern & Umbrella Filtering: Narrow tests by tags, modules, or umbrella apps.
  • Debugging Aids: Trace, verbose failures, and optional IEx usage.

Quick Start

Run a specific test file or a test by line: mix test test/my_app/accounts_test.exs:42.

Frequently Asked Questions about elixir-test-runner

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run specific ExUnit tests by line number in Elixir?

ExUnit supports line-based test selection using the syntax mix test test/path/to/file_test.exs:LINE_NUMBER. This runs only the test defined at that line, useful for focused debugging without executing the full suite.

Can I filter ExUnit tests by tags or patterns?

Yes, ExUnit filtering allows narrowing tests by tags (mix test --only tag_name) and module patterns. This reduces execution time by running only relevant tests across your project or umbrella apps.

What's the best way to run tests in Elixir umbrella projects?

Umbrella projects require targeted test execution across multiple apps. ExUnit filtering by app name or file path lets you run tests for specific sub-applications without running the entire suite.

How do I debug ExUnit test failures with verbose output and traces?

ExUnit provides verbose failure reporting and trace options to surface detailed error context. These debugging aids help identify root causes faster than standard failure summaries, especially in complex test scenarios.

Does ExUnit support coverage reporting for test runs?

ExUnit includes built-in coverage reporting that tracks which code paths are tested. Running mix test with coverage flags generates reports showing tested and untested areas across your codebase.