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

Feature: Add nuget package #334

Merged
merged 8 commits into from
Nov 1, 2024
Merged

Feature: Add nuget package #334

merged 8 commits into from
Nov 1, 2024

Conversation

hwinther
Copy link
Owner

@hwinther hwinther commented Nov 1, 2024

Description 💬

Motivation and Context 🥅

How has this been tested? 🧪

  • Local build ⚒️
  • Local tests 🧪
  • (optional) Local run and endpoint tested in swagger 🚀

Screenshots (if appropriate) 💻

Types of changes 🌊

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist ☑️

  • The pull request title starts with the jira case number (when applicable), e.g. "TEST-1234 Add some feature"
  • The person responsible for following up on requested review changes has been assigned to the pull request
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

Highly optional checks, only use these if you have a reason to do so ✔️

  • This PR changes the database so I have added the create-diagram label to assist reviewers with a db diagram
  • This PR changes platform or backend and I need others to be able to test against these changes before merging to dev, so I have added the deploy-azure label to deploy before merging the PR

Checklist for the approver ✅

  • I've checked the files view for spelling issues, code quality warnings and similar
  • I've waited until all checks have passed (green check/without error)
  • I've checked that only the intended files are changed

@github-actions github-actions bot added documentation Improvements or additions to documentation dependencies Pull requests that update a dependency file backend labels Nov 1, 2024
@hwinther hwinther enabled auto-merge (squash) November 1, 2024 23:29
@hwinther hwinther changed the base branch from main to dev November 1, 2024 23:29
Copy link

github-actions bot commented Nov 1, 2024

✅ Build successful

Copy link

github-actions bot commented Nov 1, 2024

Summary

Summary
Generated on: 11/01/2024 - 23:48:19
Coverage date: 11/01/2024 - 23:48:18
Parser: MultiReport (2x Cobertura)
Assemblies: 1
Classes: 26
Files: 25
Line coverage: 75.6% (570 of 753)
Covered lines: 570
Uncovered lines: 183
Coverable lines: 753
Total lines: 1718
Branch coverage: 67.9% (53 of 78)
Covered branches: 53
Total branches: 78
Method coverage: Feature is only available for sponsors

Coverage

WebApi - 75.6%
Name Line Branch
WebApi 75.6% 67.9%
WebApi.Attributes.DefineConstantsAttribute 100%
WebApi.Controllers.BloggingController 100% 100%
WebApi.Controllers.SendMessageController 100%
WebApi.Controllers.ServiceController 100%
WebApi.Controllers.WeatherForecastController 100%
WebApi.Database.Blog 100%
WebApi.Database.BlogConfiguration 100%
WebApi.Database.BloggingContext 100%
WebApi.Database.Post 100%
WebApi.Database.PostConfiguration 100%
WebApi.Entities.BlogDto 100% 100%
WebApi.Entities.GenericValue`1 100%
WebApi.Entities.PostDto 100% 100%
WebApi.Entities.VersionInformation 100%
WebApi.Entities.WeatherForecast 100%
WebApi.Filters.ValidateModelAttribute 0% 0%
WebApi.Messaging.MessageReceiver 53.1% 25%
WebApi.Messaging.MessageSender 63.2% 37.5%
WebApi.Messaging.RabbitMqHelper 63.3% 50%
WebApi.Middleware.ExceptionHandlingMiddleware 0% 0%
WebApi.Middleware.ProduceResponseTypeModelProvider 94.4% 75%
WebApi.Migrations.AddBlogMaxLength 82%
WebApi.Migrations.AddBlogTitleField 93.9%
WebApi.Migrations.BloggingContextModelSnapshot 0%
WebApi.Migrations.InitialMigration 94.2%
WebApi.Repository.BloggingRepository 100% 100%
failure

Copy link

github-actions bot commented Nov 1, 2024

Code Coverage

Package Line Rate Branch Rate Health
WebApi 76% 68%
Summary 76% (570 / 753) 68% (53 / 78)

@hwinther hwinther disabled auto-merge November 1, 2024 23:50
@hwinther hwinther merged commit 66e0a90 into dev Nov 1, 2024
15 checks passed
@hwinther hwinther deleted the feature/TEST-0008-nuget-package branch November 1, 2024 23:52
Copy link

github-actions bot commented Nov 1, 2024

Mutation Testing Summary

File Score Killed Survived Timeout No Coverage Ignored Compile Errors Total Detected Total Undetected Total Mutants
Attributes/DefineConstantsAttribute.cs 100.00% 1 0 0 0 0 0 1 0 1
Controllers/BloggingController.cs 100.00% 16 0 0 0 6 0 16 0 22
Controllers/SendMessageController.cs N/A 0 0 0 0 0 1 0 0 1
Controllers/ServiceController.cs 100.00% 5 0 0 0 2 1 5 0 8
Controllers/WeatherForecastController.cs 57.14% 8 6 0 0 1 0 8 6 15
Database/BloggingContext.cs 0.00% 0 4 0 0 2 0 0 4 6
Entities/BlogDto.cs 90.00% 18 2 0 0 1 0 18 2 21
Entities/GenericValue.cs N/A 0 0 0 0 0 0 0 0 0
Entities/PostDto.cs 91.30% 21 2 0 0 1 0 21 2 24
Entities/VersionInformation.cs 40.00% 4 6 0 0 0 0 4 6 10
Entities/WeatherForecast.cs N/A 0 0 0 0 0 0 0 0 0
Filters/ValidateModelAttribute.cs 0.00% 0 0 0 1 1 0 0 1 2
Messaging/MessageReceiver.cs 23.53% 4 5 0 8 7 3 4 13 27
Messaging/MessageSender.cs 31.58% 6 6 0 7 7 0 6 13 26
Messaging/RabbitMqHelper.cs 29.63% 8 6 0 13 3 2 8 19 32
Middleware/ExceptionHandlingMiddleware.cs 0.00% 0 0 0 11 4 0 0 11 15
Middleware/ProduceResponseTypeModelProvider.cs 0.00% 0 5 0 1 3 0 0 6 9
Migrations/20240618183910_InitialMigration.cs 63.89% 23 9 0 4 4 0 23 13 40
Migrations/20240622201804_AddBlogMaxLength.cs 25.00% 6 6 0 12 2 0 6 18 26
Migrations/20240623122654_AddBlogTitleField.cs 44.44% 4 2 0 3 2 0 4 5 11
Program.cs 22.22% 12 42 0 0 8 0 12 42 62
Repository/BloggingRepository.cs 100.00% 15 0 0 0 6 2 15 0 23

The final mutation score is 48.40%

Coverage Thresholds: high:80 low:60 break:0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant