Tag: JUnit
All the articles with the tag "JUnit".
Contributing to JUnit, Part 4: Writing the Release Note, Addressing the Maintainer's Review, and Getting Merged
—viewsI wrap up the last stretch of JUnit PR #6281. I added my change to the 6.2.0-M2 release notes, which are written in AsciiDoc, then added the cancellation scenario tests the maintainer asked for in the full review, until the PR got merged.
Contributing to JUnit, Part 3: Addressing the First Review and Structuring Cancellation Checks with shouldContinue
—viewsI walk through how I addressed the first review on JUnit PR #6281. The reviewer pointed out that a cancellation check I'd left out, relying on the loop check, creates an implicit dependency, and that a user cancelling between steps can't be reproduced in a test, so I tied the entry conditions and the cancellation check together in a single shouldContinue.
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.