Skip to content

Conversation

marcphilipp
Copy link
Member

  • Use JUnit 6.0.0-SNAPSHOT for testing
  • Provide cancellation support

public void beforeInvocation(IInvokedMethod method, ITestResult testResult) {
if (cancellationToken.getAsBoolean()) {
SkipException exception = skipException;
if (exception == null) {
Copy link
Member Author

Choose a reason for hiding this comment

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

This doesn't have to be strictly thread-safe. My intention is to avoid creating loads of exceptions with strack traces but whether it's 1 or 2 is irrelevant

@marcphilipp marcphilipp added this to the 1.1 milestone Jul 9, 2025
@marcphilipp marcphilipp merged commit 49caf4f into main Jul 9, 2025
9 checks passed
@marcphilipp marcphilipp deleted the marc/cancellation-support branch July 9, 2025 08:30
@marcphilipp marcphilipp moved this from Todo to Done in Sovereign Tech Fund Jul 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants