File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ MONGODB_URI=${MONGODB_URI:=mongodb://localhost:27017/}
6
6
EFCORE_PROVIDER_PROJECT=" ./src/MongoDB.EntityFrameworkCore/MongoDB.EntityFrameworkCore.csproj"
7
7
TESTS_PROJECT=" ./tests/MongoDB.EntityFrameworkCore.FunctionalTests/MongoDB.EntityFrameworkCore.FunctionalTests.csproj"
8
8
9
+ BUILD_CONFIGURATION=" Debug"
10
+ if [[ " ${PACKAGE_VERSION} " == " 9." * ]]; then
11
+ BUILD_CONFIGURATION=" Debug EF9"
12
+ fi
13
+
9
14
echo Retargeting API tests to use generated package instead of project dependency...
10
15
dotnet nuget add source " ./artifacts/nuget" -n local --configfile " ./nuget.config"
11
16
dotnet nuget locals temp -c
@@ -16,7 +21,7 @@ dotnet remove "$TESTS_PROJECT" reference "$EFCORE_PROVIDER_PROJECT"
16
21
dotnet add " $TESTS_PROJECT " package " MongoDB.EntityFrameworkCore" -v " $PACKAGE_VERSION "
17
22
18
23
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"
20
25
21
26
echo " Revert changes for test project: $TESTS_PROJECT "
22
27
dotnet remove " $TESTS_PROJECT " package " MongoDB.EntityFrameworkCore"
You can’t perform that action at this time.
0 commit comments