frasermclean / adoptrix

Pet adoption centre platform
https://demo.adoptrix.com
MIT License
1 stars 0 forks source link

Test improvements #60

Closed frasermclean closed 6 months ago

github-actions[bot] commented 6 months ago

Solution test results

102 tests  +1   102 :white_check_mark: +1   18s :stopwatch: -3s   6 suites ±0     0 :zzz: ±0    6 files   ±0     0 :x: ±0 

Results for commit 085b6d23. ± Comparison against base commit bd307c03.

This pull request removes 36 and adds 37 tests. Note that renamed tests count towards both. ``` Adoptrix.Api.Tests.Controllers.AnimalControllerTests ‑ DeleteAnimal_WithValidCommand_ShouldReturnNotContent(animalId: a81baa95-ef0f-45cd-a2f4-d0cba2c33d29) Adoptrix.Api.Tests.Controllers.AnimalControllerTests ‑ GetAnimal_WithValidRequest_ShouldReturnOk(animalId: d6182a66-6abf-4fba-afd5-daeed59cb0e1) Adoptrix.Api.Tests.Controllers.AnimalControllerTests ‑ SearchAnimals_WithValidRequest_ShouldReturnOk(name: "nameec4ef08d-35ae-4798-8e16-e4e9da02e0f6", breedId: d6d38356-c8a3-46ba-a0e7-4a7804b2d601) Adoptrix.Api.Tests.Controllers.BreedsControllerTests ‑ AddBreed_WithDuplicateBreedName_Returns_ProblemDetails Adoptrix.Api.Tests.Controllers.BreedsControllerTests ‑ AddBreed_WithValidRequest_Returns_Created Adoptrix.Api.Tests.Controllers.BreedsControllerTests ‑ DeleteBreed_WithUnknownBreedId_Returns_NotFound Adoptrix.Api.Tests.Controllers.BreedsControllerTests ‑ DeleteBreed_WithValidBreedId_Returns_NoContent(breedId: d3bb446f-dac6-46e9-8b87-0948c5cee359) Adoptrix.Api.Tests.Controllers.BreedsControllerTests ‑ GetBreed_WithUnknownBreedId_Returns_NotFound Adoptrix.Api.Tests.Controllers.BreedsControllerTests ‑ GetBreed_WithValidBreedId_Returns_Ok(breedId: 736a68a2-0777-4065-9a85-ec7983f74054) Adoptrix.Api.Tests.Controllers.BreedsControllerTests ‑ UpdateBreed_WithDuplicateBreedName_Returns_ProblemDetails … ``` ``` Adoptrix.Api.Tests.Controllers.AnimalControllerTests ‑ DeleteAnimal_WithValidCommand_ShouldReturnNotContent(animalId: 5573ba15-724a-40e2-bd81-c689746391c5) Adoptrix.Api.Tests.Controllers.AnimalControllerTests ‑ GetAnimal_WithValidRequest_ShouldReturnOk(animalId: 284a5b8e-0c8f-479b-ad20-5acb78634ba7) Adoptrix.Api.Tests.Controllers.AnimalControllerTests ‑ SearchAnimals_WithValidRequest_ShouldReturnOk(name: "name5945904e-92be-4909-b346-b5ac4ddd5ab2", breedId: 16e5c624-313c-4469-a73c-855fbea6ab8f) Adoptrix.Api.Tests.Controllers.BreedsControllerTests ‑ AddBreed_WithDuplicateBreedName_ReturnsProblemDetails(request: SetBreedRequest { Name = Name458d4830-2396-4495-beff-4635d9cff58c, SpeciesId = bfcd92cb-0f62-4e6f-9ea0-9da86ae8fada }, breed: Breed { Animals = [], CreatedAt = 2023-10-30T14:24:43.6311677, CreatedBy = 40580e76-61c1-420c-b1fe-549353c1aba9, Id = 99136d54-0711-44cc-8fe1-b90676d73436, Name = "Name4b28ab33-3f58-467f-bb58-0982a169e312", ··· }) Adoptrix.Api.Tests.Controllers.BreedsControllerTests ‑ AddBreed_WithValidRequest_Returns_Created(request: SetBreedRequest { Name = Nameab62c783-e8a8-451c-b497-ebb66e1a6c79, SpeciesId = 8269f6fe-f4e8-4da0-8599-2b21391c9b5b }) Adoptrix.Api.Tests.Controllers.BreedsControllerTests ‑ DeleteBreed_WithUnknownBreedId_Returns_NotFound(breedId: 076cf233-672a-402a-be45-4f441b1d22e8) Adoptrix.Api.Tests.Controllers.BreedsControllerTests ‑ DeleteBreed_WithValidBreedId_Returns_NoContent(breedId: 9470b64b-e5c5-4ab7-ba87-0404511da2c1) Adoptrix.Api.Tests.Controllers.BreedsControllerTests ‑ GetBreed_WithUnknownBreedId_Returns_NotFound(breedId: 5bde2cba-fdd9-43ea-91f3-46435fbce752) Adoptrix.Api.Tests.Controllers.BreedsControllerTests ‑ GetBreed_WithValidBreedId_Returns_Ok(breedId: 916d5e90-eb66-4220-b64c-deaf67b6f975) Adoptrix.Api.Tests.Controllers.BreedsControllerTests ‑ UpdateBreed_WithDuplicateBreedName_Returns_ProblemDetails(breedId: c764fa37-0391-4220-a268-b4201502e48e, request: SetBreedRequest { Name = Named829a079-4bec-459c-a578-2fa56d26086e, SpeciesId = eb1082f3-51de-4c7a-b351-5ea506a55393 }) … ```

:recycle: This comment has been updated with latest results.

codecov[bot] commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 85.45%. Comparing base (bd307c0) to head (085b6d2).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #60 +/- ## ========================================== + Coverage 84.94% 85.45% +0.51% ========================================== Files 110 110 Lines 1109 1107 -2 Branches 64 64 ========================================== + Hits 942 946 +4 + Misses 151 145 -6 Partials 16 16 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.