Flurl/Build/test.coverage.sh
2019-02-24 12:04:41 +03:00

11 lines
416 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
SCRIPT_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo "!!WARNING!! This script generates test coverage file and runs tests for netstandard and netcoreapp targets"
dotnet test -c Release /p:CollectCoverage=true /p:Threshold=75 \
/p:Exclude="[NUnit3.*]*" \
/p:CoverletOutputFormat=lcov /p:CoverletOutput="${SCRIPT_ROOT}/../../lcov" \
"${SCRIPT_ROOT}/../test/Flurl.Test/"