Skip to content

Conversation

@stijnmoreels
Copy link
Member

Adds initial testing components for interaction with Azure Event Hubs.

Relates to #90

@netlify
Copy link

netlify bot commented Jan 31, 2025

Deploy Preview for arcus-testing ready!

Name Link
🔨 Latest commit 9194a1b
🔍 Latest deploy log https://app.netlify.com/projects/arcus-testing/deploys/69785a5de38e9e0008519043
😎 Deploy Preview https://deploy-preview-265--arcus-testing.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@arcus-automation
Copy link
Collaborator

arcus-automation commented Jan 31, 2025

🧪 Code coverage summary

Metric Value
Line coverage 🟢 93.3%
Branch coverage 🟢 83.5%

Great job! 😎 Your code coverage is higher than my caffeine levels! ☕

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 3, 2025

@stijnmoreels stijnmoreels added feature All issues related to new features area:messaging All issues related to testing messaging systems. labels Apr 18, 2025
@stijnmoreels stijnmoreels added this to the v2.1 milestone Apr 28, 2025
@stijnmoreels stijnmoreels modified the milestones: v2.1, v2.2 Jun 13, 2025
@stijnmoreels stijnmoreels modified the milestones: v2.2, v2.3 Nov 13, 2025
@stijnmoreels stijnmoreels marked this pull request as ready for review January 2, 2026 06:16
@stijnmoreels stijnmoreels requested a review from a team as a code owner January 2, 2026 06:16
fgheysels pushed a commit that referenced this pull request Jan 9, 2026
Use a read-only variant for the `ToList` result of the Azure Service Bus
filtering.

Follow-up of #265 where @fgheysels made my brain 🧠 work.
Copy link
Member

@fgheysels fgheysels left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just have some suggestions

## Temporary hub
The `TemporaryEventHub` provides a solution when the integration test requires an Azure Event Hub during the test run. The test fixture creates a hub upon the setup of the fixture and deletes it again when the fixture disposes.

> ✨ Only when the test fixture was responsible for creating the hub, will the fixture delete the hub upon disposal. This follows the 'clean environment' testing principle that describes that after the test run, the test should revert the state back to its original state.
Copy link
Member

@fgheysels fgheysels Jan 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
> Only when the test fixture was responsible for creating the hub, will the fixture delete the hub upon disposal. This follows the 'clean environment' testing principle that describes that after the test run, the test should revert the state back to its original state.
> When the test fixture was responsible for creating the hub, the fixture will delete the hub when the test disposes the fixture. This follows the 'clean environment' testing principle that describes that a test should revert the environment to its original state after the test has run.

Copy link
Member Author

@stijnmoreels stijnmoreels Jan 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'when the test has finished' might not always be when the 'test fixture disposes'. In most cases: yes, but that is more related to how the test was implemented. This remark only talks about the lifetime of the test fixture, independent on how it is used.
Plus, without mentioning 'dispose', I would imagine people thinking that it is some kind of 'aspect-oriented' stuff that gets hooked in.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, then change 'when the test has finished' to 'when the test has disposed' :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'Test disposes the fixture'? Added this suggestion.

stijnmoreels and others added 2 commits January 22, 2026 09:02
Co-authored-by: Frederik Gheysels <frederik.gheysels@telenet.be>
Co-authored-by: Frederik Gheysels <frederik.gheysels@telenet.be>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:messaging All issues related to testing messaging systems. feature All issues related to new features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants