Skip to content
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

Merged
merged 27 commits into from
Jan 16, 2024

Conversation

RogerBarreto
Copy link
Member

Motivation and Context

Convert Kernel Examples as Integration Tests.

@shawncal shawncal added the .NET Issue or Pull requests regarding .NET code label Jan 8, 2024
@RogerBarreto RogerBarreto self-assigned this Jan 8, 2024
@RogerBarreto RogerBarreto marked this pull request as ready for review January 10, 2024 14:03
@RogerBarreto RogerBarreto requested a review from a team as a code owner January 10, 2024 14:03
@RogerBarreto RogerBarreto changed the title .Net Kernel Examples as tests - WIP .Net Kernel Examples as tests Jan 10, 2024
@shawncal shawncal added the kernel Issues or pull requests impacting the core kernel label Jan 11, 2024
@shawncal shawncal removed the kernel Issues or pull requests impacting the core kernel label Jan 12, 2024
@Krzysztof318
Copy link
Contributor

Krzysztof318 commented Jan 13, 2024

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.

@Krzysztof318
Copy link
Contributor

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.

@RogerBarreto RogerBarreto added this pull request to the merge queue Jan 16, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 16, 2024
@RogerBarreto RogerBarreto added this pull request to the merge queue Jan 16, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 16, 2024
@RogerBarreto RogerBarreto added this pull request to the merge queue Jan 16, 2024
Merged via the queue into microsoft:main with commit b99b780 Jan 16, 2024
18 checks passed
@RogerBarreto RogerBarreto deleted the issues/3999-samples-as-tests branch January 16, 2024 19:21
github-merge-queue bot pushed a commit that referenced this pull request Jan 19, 2024
### 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>
Bryan-Roe pushed a commit to Bryan-Roe/semantic-kernel that referenced this pull request Oct 6, 2024
### Motivation and Context

Convert Kernel Examples as Integration Tests.
Bryan-Roe pushed a commit to Bryan-Roe/semantic-kernel that referenced this pull request Oct 6, 2024
### 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
.NET Issue or Pull requests regarding .NET code
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants