ci
Some checks failed
CI / lint (push) Failing after 1m5s
Deploy / deploy (push) Has been skipped
CI / test (push) Successful in 9m11s

This commit is contained in:
2025-08-02 00:39:05 +03:00
parent ea92a376ed
commit 44323d2d9c
7 changed files with 186 additions and 20 deletions

22
scripts/test-coverage.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/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"