Energinet-DataHub / ARCHIVED-geh-charges

Apache License 2.0
7 stars 3 forks source link

Test: Add integration tests for `ChargeMessagesQueryService` #1828

Closed prtandrup closed 1 year ago

prtandrup commented 1 year ago

Description

This PR adds integration tests for ChargeMessagesQueryService

References

codecov[bot] commented 1 year ago

Codecov Report

Merging #1828 (d55569c) into main (1dad7b0) will decrease coverage by 0.90%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1828      +/-   ##
==========================================
- Coverage   83.95%   83.04%   -0.91%     
==========================================
  Files         471      449      -22     
  Lines        8214     7980     -234     
  Branches      438       22     -416     
==========================================
- Hits         6896     6627     -269     
- Misses       1225     1226       +1     
- Partials       93      127      +34     
Flag Coverage Δ
business 86.73% <100.00%> (?)
clientlibraries 31.84% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...ueryApi/QueryServices/ChargeMessageQueryService.cs 84.90% <100.00%> (+11.32%) :arrow_up:
...ergyHub.Charges.Domain/Charges/ChargeIdentifier.cs 0.00% <0.00%> (-100.00%) :arrow_down:
...rastructure.Core/Registration/EnvironmentHelper.cs 0.00% <0.00%> (-100.00%) :arrow_down:
...ain/Dtos/Events/MarketParticipantCreatedCommand.cs 14.28% <0.00%> (-85.72%) :arrow_down:
...es.Domain/Dtos/Events/GridAreaOwnerAddedCommand.cs 33.33% <0.00%> (-66.67%) :arrow_down:
...Dtos/Events/MarketParticipantNameChangedCommand.cs 33.33% <0.00%> (-66.67%) :arrow_down:
...os/Events/MarketParticipantStatusChangedCommand.cs 33.33% <0.00%> (-66.67%) :arrow_down:
...vents/MarketParticipantB2CActorIdChangedCommand.cs 33.33% <0.00%> (-66.67%) :arrow_down:
....ApplyDBMigrationsApp/Helpers/EnvironmentFilter.cs 0.00% <0.00%> (-62.50%) :arrow_down:
...ebApi/Configuration/ServiceCollectionExtensions.cs 46.66% <0.00%> (-53.34%) :arrow_down:
... and 72 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication