Repository navigation
chore: update aweXpect to 4.0.0-pre.3 - #201
Merged
Merged
Conversation
aweXpect 4.0.0-pre.3 replaces the experimental `ITimeSystem` with the standard `TimeProvider` (Testably/aweXpect#2148). It also adds `CancelAfter` on `IEvaluationContext`, which cancels on the clock of the evaluation, for extensions that wait with a timeout of their own, like a mock that waits for an interaction `Within(timeout)`. The `Within` timeout and the `Then` budget used `CancellationTokenSource.CancelAfter` and so always elapsed in real time, while the elapsed time was measured on the clock of the evaluation. With `WithTimeProvider(…)` and a virtual clock, they now elapse on that clock as well, so the timeout and the measured time agree. On the default real clock the behaviour does not change. The test helper `VirtualTimeSystem` is replaced by a `TimeProvider`, `VirtualTimeProvider`, whose timers fire when the test advances the clock. Two new tests check that `Within` and the `Then` budget elapse on the given clock; without the change they wait 30 seconds of real time.
vbreuss
enabled auto-merge (squash)
October 29, 2026 14:10
|
👽 Mutation ResultsaweXpect.MockolateDetails
The final mutation score is 94.44%Coverage Thresholds: high:80 low:60 break:0 |
🚀 Benchmark ResultsDetails
|
|
This is addressed in release v4.0.0. |
This was referenced Nov 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



aweXpect 4.0.0-pre.3 replaces the experimental
ITimeSystemwith the standardTimeProvider(Testably/aweXpect#2148). It also addsCancelAfteronIEvaluationContext, which cancels on the clock of the evaluation, for extensions that wait with a timeout of their own, like a mock that waits for an interactionWithin(timeout).The
Withintimeout and theThenbudget usedCancellationTokenSource.CancelAfterand so always elapsed in real time, while the elapsed time was measured on the clock of the evaluation. WithWithTimeProvider(…)and a virtual clock, they now elapse on that clock as well, so the timeout and the measured time agree. On the default real clock the behaviour does not change.The test helper
VirtualTimeSystemis replaced by aTimeProvider,VirtualTimeProvider, whose timers fire when the test advances the clock. Two new tests check thatWithinand theThenbudget elapse on the given clock; without the change they wait 30 seconds of real time.