Energinet-DataHub / ARCHIVED-geh-charges

Apache License 2.0
7 stars 3 forks source link

Fix/rewrite outbox tests #1856

Closed jonasdmoeller closed 1 year ago

jonasdmoeller commented 1 year ago

Refactored OutboxProcessorEndpoint integration tests to not use function host, but instead mock calls to DomainEventPublisher.

codecov[bot] commented 1 year ago

Codecov Report

Merging #1856 (8b1a9a5) into main (5c427d3) will decrease coverage by 0.65%. The diff coverage is 50.00%.

@@            Coverage Diff             @@
##             main    #1856      +/-   ##
==========================================
- Coverage   84.59%   83.93%   -0.66%     
==========================================
  Files         468      447      -21     
  Lines        8114     7889     -225     
  Branches      431       22     -409     
==========================================
- Hits         6864     6622     -242     
+ Misses       1164     1146      -18     
- Partials       86      121      +35     
Flag Coverage Δ
business 87.74% <50.00%> (?)

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

Impacted Files Coverage Δ
...e.Core/MessagingExtensions/ServiceBusDispatcher.cs 57.14% <0.00%> (ø)
...re.Core/InternalMessaging/DomainEventDispatcher.cs 100.00% <100.00%> (+38.46%) :arrow_up:
...ergyHub.Charges.Domain/Charges/ChargeIdentifier.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:
....Domain/Dtos/Events/GridAreaOwnerRemovedCommand.cs 50.00% <0.00%> (-50.00%) :arrow_down:
... and 71 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 1 Code Smell

0.0% 0.0% Coverage
0.0% 0.0% Duplication