mirror of
https://github.com/Radarr/Radarr
synced 2024-12-21 23:42:23 +00:00
Swap from dotnet vstest to dotnet test
(cherry picked from commit c40f87ce2f3fc03acb9a3d73498e7861f5750b4b)
This commit is contained in:
parent
c8de61df19
commit
c96f29f1e8
1 changed files with 4 additions and 4 deletions
8
test.sh
8
test.sh
|
@ -22,7 +22,7 @@ rm -f "$TEST_LOG_FILE"
|
||||||
# Uncomment to log test output to a file instead of the console
|
# Uncomment to log test output to a file instead of the console
|
||||||
export RADARR_TESTS_LOG_OUTPUT="File"
|
export RADARR_TESTS_LOG_OUTPUT="File"
|
||||||
|
|
||||||
VSTEST_PARAMS="--Platform:x64 --logger:nunit;LogFilePath=TestResult.xml"
|
VSTEST_PARAMS="--logger:nunit;LogFilePath=TestResult.xml"
|
||||||
|
|
||||||
if [ "$PLATFORM" = "Mac" ]; then
|
if [ "$PLATFORM" = "Mac" ]; then
|
||||||
|
|
||||||
|
@ -60,13 +60,13 @@ for i in "${FILES[@]}";
|
||||||
do ASSEMBLIES="$ASSEMBLIES $TEST_DIR/$i"
|
do ASSEMBLIES="$ASSEMBLIES $TEST_DIR/$i"
|
||||||
done
|
done
|
||||||
|
|
||||||
DOTNET_PARAMS="$ASSEMBLIES --TestCaseFilter:$WHERE $VSTEST_PARAMS"
|
DOTNET_PARAMS="$ASSEMBLIES --filter:$WHERE $VSTEST_PARAMS"
|
||||||
|
|
||||||
if [ "$COVERAGE" = "Coverage" ]; then
|
if [ "$COVERAGE" = "Coverage" ]; then
|
||||||
dotnet vstest $DOTNET_PARAMS --settings:"src/coverlet.runsettings" --ResultsDirectory:./CoverageResults
|
dotnet test $DOTNET_PARAMS --settings:"src/coverlet.runsettings" --results-directory:./CoverageResults
|
||||||
EXIT_CODE=$?
|
EXIT_CODE=$?
|
||||||
elif [ "$COVERAGE" = "Test" ] ; then
|
elif [ "$COVERAGE" = "Test" ] ; then
|
||||||
dotnet vstest $DOTNET_PARAMS
|
dotnet test $DOTNET_PARAMS
|
||||||
EXIT_CODE=$?
|
EXIT_CODE=$?
|
||||||
else
|
else
|
||||||
echo "Run Type must be provided as third argument: Coverage or Test"
|
echo "Run Type must be provided as third argument: Coverage or Test"
|
||||||
|
|
Loading…
Reference in a new issue