Skip to content

Commit 810c0f9

Browse files
sanych-sunOleksandr Poliakov
and
Oleksandr Poliakov
authored
EF-165: Support for EF Core 9 - Fix smoke tests build configuration (#192)
Co-authored-by: Oleksandr Poliakov <[email protected]>
1 parent a0a66b0 commit 810c0f9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

evergreen/run-smoke-tests.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ MONGODB_URI=${MONGODB_URI:=mongodb://localhost:27017/}
66
EFCORE_PROVIDER_PROJECT="./src/MongoDB.EntityFrameworkCore/MongoDB.EntityFrameworkCore.csproj"
77
TESTS_PROJECT="./tests/MongoDB.EntityFrameworkCore.FunctionalTests/MongoDB.EntityFrameworkCore.FunctionalTests.csproj"
88

9+
BUILD_CONFIGURATION="Debug"
10+
if [[ "${PACKAGE_VERSION}" == "9."* ]]; then
11+
BUILD_CONFIGURATION="Debug EF9"
12+
fi
13+
914
echo Retargeting API tests to use generated package instead of project dependency...
1015
dotnet nuget add source "./artifacts/nuget" -n local --configfile "./nuget.config"
1116
dotnet nuget locals temp -c
@@ -16,7 +21,7 @@ dotnet remove "$TESTS_PROJECT" reference "$EFCORE_PROVIDER_PROJECT"
1621
dotnet add "$TESTS_PROJECT" package "MongoDB.EntityFrameworkCore" -v "$PACKAGE_VERSION"
1722

1823
echo "Run tests: $TESTS_PROJECT"
19-
dotnet test "$TESTS_PROJECT" -e MONGODB__URI="${MONGODB_URI}" --results-directory "./artifacts/test-results" --logger "junit;LogFileName=TEST_{assembly}.xml;FailureBodyFormat=Verbose" --logger "console;verbosity=detailed"
24+
dotnet test "$TESTS_PROJECT" -c "$BUILD_CONFIGURATION" -e MONGODB__URI="${MONGODB_URI}" --results-directory "./artifacts/test-results" --logger "junit;LogFileName=TEST_{assembly}.xml;FailureBodyFormat=Verbose" --logger "console;verbosity=detailed"
2025

2126
echo "Revert changes for test project: $TESTS_PROJECT"
2227
dotnet remove "$TESTS_PROJECT" package "MongoDB.EntityFrameworkCore"

0 commit comments

Comments
 (0)