-
Notifications
You must be signed in to change notification settings - Fork 1.3k
CSHARP-4378: add integration tests for Azure KMS #910
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
build.cake
Outdated
items: GetFiles("./**/*.Tests.csproj"), | ||
action: (BuildConfig buildConfig, Path testProject) => | ||
{ | ||
var settings = new DotNetTestSettings |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this is a good opportunity to refactor all such repeating code to
Test(string testFilter)
or GetTestSettings(string testFilter)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, I also thought about something like this. I will try to do it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
...Driver.Tests/Specifications/client-side-encryption/prose-tests/ClientEncryptionProseTests.cs
Show resolved
Hide resolved
...Driver.Tests/Specifications/client-side-encryption/prose-tests/ClientEncryptionProseTests.cs
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (minor comment)
testProject.FullPath, | ||
settings | ||
); | ||
RunTests(buildConfig, testProject); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice.
@@ -975,3 +772,25 @@ string[] CreateLoggers() | |||
var consoleLogger = "console;verbosity=detailed"; | |||
return new []{ junitLogger, consoleLogger }; | |||
} | |||
|
|||
void RunTests(BuildConfig buildConfig, Path path, string filter = null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe consider overload with component
instead of filter
, as in practice we use only component
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
discussed offline, we can reconsider it later
No description provided.