Tag: CancellationToken
All the articles with the tag "CancellationToken".
Contributing to JUnit, Part 2: Adding Cancellation Checks to the Jupiter Lifecycle and Opening a PR
—viewsI walk through how I fixed JUnit issue #6268. I write a reproduction test, carry the CancellationToken in JupiterEngineExecutionContext so each lifecycle step checks for cancellation, then find the limits of checking only between steps, move the check into the common callback loops, and open PR #6281.
Contributing to JUnit, Part 1: Analyzing Why Test Cancellation Is Ignored While @BeforeEach Runs
—viewsI walk through how I picked up JUnit's up-for-grabs issue #6268 and analyze why a test still runs to the end when you press the stop button in IntelliJ while @BeforeEach is running. I look at CancellationToken's cooperative cancellation and the checkpoints in JUnit's execution structure, then lay out the fix direction of passing the token into the Jupiter context and the work plan.