Skip to content

Allow integrations to overwrite stop#663

Merged
delatrie merged 1 commit into
mainfrom
defer-stop-callbacks
Jun 23, 2026
Merged

Allow integrations to overwrite stop#663
delatrie merged 1 commit into
mainfrom
defer-stop-callbacks

Conversation

@delatrie

Copy link
Copy Markdown
Contributor

Context

The PR changes AllureLifecycle.StopTestCase, AllureLifecycle.StopFixture, and AllureLifecycle.StopStep to call their callbacks after they update stage and stop, not before. This allows integrations to set the timings based on their own sources of truth rather than relying on DateTimeOffset.Now, which may give incorrect results in some message-based architectures.

Additionally, these functions now check whether the stop timestamp has already been set before setting it to DateTimeOffset.Now, so integrations that receive the timings separately from test stop events don't have to store them.

Checklist

@delatrie delatrie force-pushed the defer-stop-callbacks branch from 951a6eb to 23165f5 Compare June 23, 2026 09:45
Base automatically changed from open-sdk-api to main June 23, 2026 09:50
@delatrie delatrie force-pushed the defer-stop-callbacks branch from 23165f5 to b04ea11 Compare June 23, 2026 09:51
@delatrie delatrie merged commit 1c5b601 into main Jun 23, 2026
6 checks passed
@delatrie delatrie deleted the defer-stop-callbacks branch June 23, 2026 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants