Sign in

Marc Philipp

@marcphilipp.de
161 followers 106 following 36 posts

Software engineer and @junit.org team lead, Java Champion and open source enthusiast, father, husband & family person (he/him) Website: marcphilipp.de Mastodon: chaos.social/@marcphilipp

PostsRepliesMedia
Marc Philipp @marcphilipp.de · 21/08/2025
✨ New blog post: "STF Milestone 6: Improved Kotlin support" #JUnit 6.0.0-RC1 improves JUnit's #Kotlin story by adding support for suspending functions, sequences, contracts and nullness annotations. 👉 marcphilipp.de/blog/2025/08... Thanks to the @sovereign.tech fund for their support!
object ImprovedKotlinSupportTests {

    val data = sequenceOf( // Sequence<T> support
        arguments(1, Month.JANUARY),
        arguments(12, Month.DECEMBER)
    )

    @ParameterizedTest
    @FieldSource("data")
    // suspending function support for coroutine testing
    suspend fun test(value: Int, month: Month?) {
        assertNotNull(month) // contracts to support...
        assertEquals(value, month.value) // smart casts!
    }
}
074
Marc Philipp @marcphilipp.de · 16/08/2025
✨ New blog post: "STF Milestone 5: Discovery issues" Ever written a test that wasn't being executed? 😱 #JUnit 5.13 introduced a mechanism for reporting such issues found during test discovery. 👉 marcphilipp.de/blog/2025/08... Thanks to the @sovereign.tech fund for their support!
@Test // Java
int test() {
    return 42;
} // Not executed!!! 😱😱😱
0145
Marc Philipp @marcphilipp.de · 07/06/2025
✨ New blog post: "STF Milestone 4: Parameterized test classes" JUnit 5.13 introduced parameterized test classes (in addition to methods). They are a powerful testing tool that has long been missing from JUnit Jupiter... 👉 marcphilipp.de/blog/2025/06...
@ParameterizedClass
@ValueSource(strings = {"foo", "bar"})
class SomeTests {
    @Parameter String value;
    
    @Test
    void shouldNotBeNull() {
        assertNotNull(value);
    }
    @Test
    void lengthShouldBeThree() {
        assertEquals(3, value.length());
    }
}
03011
Marc Philipp @marcphilipp.de · 01/04/2025
✨ New blog post: "STF Milestone 3: Release verification and automation" A major goal of the Sovereign Tech Fund is to help projects become more sustainable. For #JUnit, one activity in desperate need of improvement in this area was performing a release. marcphilipp.de/blog/2025/04...
screenshot of GitHub Actions workflow chart
011
Marc Philipp @marcphilipp.de · 25/03/2025
Together with @sormuras@mastodon.cloud, I will be hosting a workshop at @jcon@mastodon.social in Cologne on May 12. As you might have guessed, it's about "Catching up with #JUnit 5". See you there? schedule.jcon.one/session/837895 (1/2)
Promotional image for "Catching up with JUnit 5" workshop by Marc Philipp and Christian Stein at JCON 2025 featuring their avatars and a bunch of logos.
122