Skip to content

Commit deca17c

Browse files
committed
Switch .NET SK tests to vector data suite.
1 parent 265cc6a commit deca17c

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

semantic-kernel-csharp/run.sh

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,8 @@ sudo systemctl enable --now podman.socket
2525
# Point docker commands to use the podman socket
2626
export DOCKER_HOST="unix:///run/podman/podman.sock"
2727

28-
# Set SkipReason to null to enable tests
29-
sed -i -e 's/"The MongoDB container is intermittently timing out at startup time blocking prs, so these test should be run manually."/null/g' dotnet/src/IntegrationTests/Connectors/Memory/MongoDB/MongoDBVectorStoreRecordCollectionTests.cs
28+
# Enable MongoDB.ConformanceTests
29+
sed -i -e '/\[assembly: DisableTests/d' dotnet/test/VectorData/MongoDB.ConformanceTests/Properties/AssemblyInfo.cs
3030

31-
# Remove the attribute blocking tests so we can run them
32-
sed -i -e 's/\[DisableVectorStoreTests(Skip = "The MongoDB container is intermittently timing out at startup time blocking prs, so these test should be run manually.")\]//g' dotnet/src/IntegrationTests/Connectors/Memory/MongoDB/MongoDBVectorStoreTests.cs
33-
34-
echo "Running MongoDBVectorStoreTests"
35-
sudo $DOTNET_SDK_PATH/dotnet test dotnet/src/IntegrationTests/IntegrationTests.csproj --filter "SemanticKernel.IntegrationTests.Connectors.MongoDB.MongoDBVectorStoreTests"
31+
echo "Running MongoDB.ConformanceTests"
32+
sudo $DOTNET_SDK_PATH/dotnet test dotnet/test/VectorData/MongoDB.ConformanceTests/MongoDB.ConformanceTests.csproj --framework net8.0

0 commit comments

Comments
 (0)