Something went wrong. Try again.
A Rust clone of doing by Brett Terpstra — a command line tool for remembering what you were doing and tracking what you've done. doing.aaronmallen.dev
Something went wrong. Try again.
12345678910111213141516171819202122232425#!/usr/bin/env sh#MISE description="Run all tests"#MISE alias=["t"]#USAGE flag "--filter" help="Filter tests by name" {#USAGE arg "<filter>"#USAGE }
set -e
FILTER_ARGS=""DOC_FILTER_ARGS=""if [ -n "${usage_filter}" ]; then FILTER_ARGS="--no-fail-fast --filter-expr 'test(/${usage_filter}/)'" DOC_FILTER_ARGS="--no-fail-fast ${usage_filter}"fi
eval cargo llvm-cov nextest --workspace --summary-only --all-features --no-tests pass $FILTER_ARGS
# nextest cannot run doctests, so without this pass they are never run at all.# It builds outside the coverage target dir, so the reports below are unaffected# and doctests do not count toward coverage.eval cargo test --doc --workspace --all-features $DOC_FILTER_ARGScargo llvm-cov report --html --output-dir coveragecargo llvm-cov report --cobertura --output-path coverage/cobertura.xml