Files
quoter/scripts/test-coverage.sh
Untone 44323d2d9c
Some checks failed
CI / lint (push) Failing after 1m5s
Deploy / deploy (push) Has been skipped
CI / test (push) Successful in 9m11s
ci
2025-08-02 00:39:05 +03:00

22 lines
615 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
# Скрипт для запуска тестов с покрытием кода
set -e
echo "🔧 Установка cargo-llvm-cov..."
cargo install cargo-llvm-cov
echo "🧪 Запуск тестов..."
cargo test --tests
echo "📊 Генерация отчета покрытия..."
cargo llvm-cov --lcov --output-path lcov.info
cargo llvm-cov --html
echo "📈 Статистика покрытия:"
cargo llvm-cov --summary
echo "✅ Тесты и покрытие завершены!"
echo "📁 HTML отчет: target/llvm-cov/html/index.html"
echo "📄 LCOV отчет: lcov.info"