Skip to content

Commit

Permalink
Filter test discovery depending on solution
Browse files Browse the repository at this point in the history
  • Loading branch information
danielcweber committed Dec 18, 2024
1 parent 74487dc commit caebca0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/Tests.Infrastructure/GremlinqTestFramework.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ public ValueTask RunTestCases(IReadOnlyCollection<ITestCase> testCases, IMessage
testCases
.Where(testCase =>
{
#if Gremlinq_Extensions
if (testCase.TestClassNamespace?.StartsWith("Gremlinq.Extensions") is false)
return false;
#elif ExRam_Gremlinq
if (testCase.TestClassNamespace?.StartsWith("ExRam.Gremlinq") is false)
return false;
#endif

if (testCase.Traits.TryGetValue("Category", out var categories) && categories.Contains("IntegrationTest"))
return testCase.Traits.TryGetValue("ValidPlatform", out var validPlatforms) && validPlatforms.Any(validPlatform => OperatingSystem.IsOSPlatform(validPlatform));

Expand Down

0 comments on commit caebca0

Please sign in to comment.