arcus-azure/arcus.testing
✨ [New]: pass cancellation token to test fixtures
Aberta
#507 aberto em 24 de fev. de 2026
featuregood first issue
Métricas do repositório
- Stars
- (9 estrelas)
- Métricas de merge de PR
- (Métricas PR pendentes)
Description
Description
With the new update of xUnit and the update throughout other testing frameworks as well, there is support available for test cancellation. This makes sure that tests cancelled by the user are faster finished (still keeping the teardown process in mind).
Solution
We should make sure that the following libraries have test cancellation support:
- Azure Blob Storage https://github.com/arcus-azure/arcus.testing/pull/508
- Azure Table Storage
- Azure Service Bus
- Azure Event Hubs
- Azure Cosmos DB
- Azure Data Factory
- Core
- Azure File Share
Additional context
The process of adding cancellation support is:
- Determine the 'setup' operations on the test fixture.
- Create new overloads with the
CancellationTokenparameter. - Use the
CancellationTokenparameter throughout the 'setup' operations. - Mark the non-cancellation overloads obsolete & replace implementation with delegation to cancellation-supported overloads.