-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
.Net Kernel Examples as tests #4526
.Net Kernel Examples as tests #4526
Conversation
…nto issues/3999-samples-as-tests
dotnet/samples/KernelSyntaxExamples/Example05_InlineFunctionDefinition.cs
Show resolved
Hide resolved
dotnet/samples/KernelSyntaxExamples/Example01_MethodFunctions.cs
Outdated
Show resolved
Hide resolved
dotnet/samples/KernelSyntaxExamples/Example45_MultiStreamingChatCompletion.cs
Show resolved
Hide resolved
I'm not sure this is better way. For example rider is forcing build projects always before run tests session. That is annoying slow down. |
But if you prefer examples in the form of tests, I would go one step further and break the tests into smaller ones, i.e. depending on the deployment type (for example openai, azure, google, bing), and instead of checking whether the configuration is not null turn the configuration check into an assert. You could even break the sub-examples into separate tests. |
### Motivation and Context <!-- Thank you for your contribution to the semantic-kernel repo! Please help reviewers and future users, providing the following information: 1. Why is this change required? 2. What problem does it solve? 3. What scenario does it contribute to? 4. If it fixes an open issue, please link to the issue here. --> PR #4526 ### Description <!-- Describe your changes, the overall approach, the underlying design. These notes will help understanding how your code works. Thanks! --> Converted examples 52 and 75 to tests Fix samples project files formatting based on common solution resharper settings. ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [x] The code builds clean without any errors or warnings - [x] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [x] All unit tests pass, and I have added new tests where possible - [x] I didn't break anyone 😄 --------- Co-authored-by: Roger Barreto <19890735+RogerBarreto@users.noreply.github.com>
### Motivation and Context Convert Kernel Examples as Integration Tests.
### Motivation and Context <!-- Thank you for your contribution to the semantic-kernel repo! Please help reviewers and future users, providing the following information: 1. Why is this change required? 2. What problem does it solve? 3. What scenario does it contribute to? 4. If it fixes an open issue, please link to the issue here. --> PR microsoft#4526 ### Description <!-- Describe your changes, the overall approach, the underlying design. These notes will help understanding how your code works. Thanks! --> Converted examples 52 and 75 to tests Fix samples project files formatting based on common solution resharper settings. ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [x] The code builds clean without any errors or warnings - [x] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [x] All unit tests pass, and I have added new tests where possible - [x] I didn't break anyone 😄 --------- Co-authored-by: Roger Barreto <19890735+RogerBarreto@users.noreply.github.com>
Motivation and Context
Convert Kernel Examples as Integration Tests.