#!/usr/bin/env sh #MISE description="Run all tests" #MISE alias=["t"] #USAGE flag "--filter" help="Filter tests by name" { #USAGE arg "" #USAGE } set -e FILTER_ARGS="" if [ -n "${usage_filter}" ]; then FILTER_ARGS="--no-fail-fast --filter-expr 'test(/${usage_filter}/)'" fi eval cargo llvm-cov nextest --workspace --summary-only --all-features --no-tests pass "${FILTER_ARGS}" cargo llvm-cov report --html --output-dir coverage cargo llvm-cov report --cobertura --output-path coverage/cobertura.xml