mix check_skip_tags (ex_mcp v0.10.0)

View Source

Checks test files for @tag :skip annotations.

This task helps maintain test coverage by preventing tests from being permanently skipped, which can hide compliance issues and create false confidence in test coverage.

Usage

# Check all test files
mix check_skip_tags

# Check only staged files (for git hooks)
mix check_skip_tags --staged

# Check files changed in branch compared to main
mix check_skip_tags --branch main

Options

  • --staged - Check only files staged for commit
  • --branch - Check files changed compared to specified branch (default: main)
  • --quiet - Suppress output, only return exit code

Exit codes

  • 0 - No @tag :skip found
  • 1 - Found @tag :skip in test files