Open
Description
If I wanted to write an extension that could cancel the test session based on some logic, I don't believe that's currently possible.
I can see there's an (internal) ITestSessionContext
in the ServiceProvider. But that only exposed a cancellation token.
Exposing a CancellationTokenSource, or just a Cancel()
method could be helpful.
I can (and do) create my own linked cancellation token source in TUnit, but a generic extension would have no concept of that.