Modified test.sh to work with multiple test projects and output in the opencover format.

This commit is contained in:
Harrison Deng 2021-03-30 20:05:55 -05:00
parent c9e6706e9b
commit 832ab632c5

View File

@ -1,2 +1,6 @@
#!/bin/bash
dotnet test -v n --collect:"XPlat Code Coverage" tests/GameServiceWarden.Core.Tests
for PROJ in tests/**/*.csproj
do
echo "Testing $PROJ"
dotnet test -v n --collect:"XPlat Code Coverage" "$PROJ" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover
done