From b105f97941a8f961c9d2881c8d1009c7e63e30a7 Mon Sep 17 00:00:00 2001 From: ta264 Date: Wed, 12 Aug 2020 21:33:37 +0100 Subject: [PATCH] Swap from dotnet vstest to dotnet test (cherry picked from commit c40f87ce2f3fc03acb9a3d73498e7861f5750b4b) --- test.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test.sh b/test.sh index 69df29ee1..e38f76817 100755 --- a/test.sh +++ b/test.sh @@ -22,7 +22,7 @@ rm -f "$TEST_LOG_FILE" # Uncomment to log test output to a file instead of the console export READARR_TESTS_LOG_OUTPUT="File" -VSTEST_PARAMS="--Platform:x64 --logger:nunit;LogFilePath=TestResult.xml" +VSTEST_PARAMS="--logger:nunit;LogFilePath=TestResult.xml" if [ "$PLATFORM" = "Mac" ]; then @@ -60,13 +60,13 @@ for i in "${FILES[@]}"; do ASSEMBLIES="$ASSEMBLIES $TEST_DIR/$i" done -DOTNET_PARAMS="$ASSEMBLIES --TestCaseFilter:$WHERE $VSTEST_PARAMS" +DOTNET_PARAMS="$ASSEMBLIES --filter:$WHERE $VSTEST_PARAMS" 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=$? elif [ "$COVERAGE" = "Test" ] ; then - dotnet vstest $DOTNET_PARAMS + dotnet test $DOTNET_PARAMS EXIT_CODE=$? else echo "Run Type must be provided as third argument: Coverage or Test"