Skip to content

.Net: Exclude some code for which we don't need to add code coverage #11772

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

markwallace-microsoft
Copy link
Member

@markwallace-microsoft markwallace-microsoft commented Apr 28, 2025

Motivation and Context

Core is very close to the code coverage threshold so excluding some functions from code coverage

  1. CaptureUsageDetails
  2. CreatePluginFromPromptDirectory no longer a recommended pattern
  3. MemoryBuilder and SemanticTextMemory are being deprecated

Description

Before
image

After
image

Contribution Checklist

@markwallace-microsoft markwallace-microsoft requested a review from a team as a code owner April 28, 2025 11:45
@markwallace-microsoft markwallace-microsoft added the .NET Issue or Pull requests regarding .NET code label Apr 28, 2025
@github-actions github-actions bot changed the title Exclude some code for which we don't need to add code coverage .Net: Exclude some code for which we don't need to add code coverage Apr 28, 2025
@markwallace-microsoft markwallace-microsoft added this pull request to the merge queue Apr 28, 2025
Merged via the queue into microsoft:main with commit 74ca404 Apr 28, 2025
22 checks passed
@markwallace-microsoft markwallace-microsoft deleted the users/markwallace/core_can_exclude_from_coverage branch April 28, 2025 18:36
glorious-beard pushed a commit to glorious-beard/semantic-kernel that referenced this pull request May 6, 2025
…icrosoft#11772)

### Motivation and Context

Core is very close to the code coverage threshold so excluding some
functions from code coverage

1. CaptureUsageDetails
2. CreatePluginFromPromptDirectory no longer a recommended pattern
3. MemoryBuilder and SemanticTextMemory are being deprecated

### Description

Before

![image](https://github.com/user-attachments/assets/49780beb-33b5-404e-95ec-cd4b6c52dab6)

After

![image](https://github.com/user-attachments/assets/d131ce1c-f91d-4600-b2be-5889f3b54234)

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [ ] The code builds clean without any errors or warnings
- [ ] 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
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄
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
None yet
Development

Successfully merging this pull request may close these issues.

3 participants