ProAndroidDev

The latest posts from Android Professionals and Google Developer Experts.

Follow publication

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Published in ProAndroidDev

The latest posts from Android Professionals and Google Developer Experts.

Written by Danny Preussler

Android @ Soundcloud, Google Developer Expert, Goth, Geek, writing about the daily crazy things in developer life with #Android and #Kotlin

Responses (3)

Write a response

I hope they will include it to Junit5.

--

nice article :)
an alternative (not as nice and reusable as the presented soultion though) would be to make use of the reflection api:
@Test
fun `developers should be named by their class name`() {
val developerConstructors =…

--

Parameterized tests in Kotlin are in general not nice to use, this is exactly why I started https://github.com/junit-team/junit5/pull/2177. This would keep it all nicely functional and typesafe. Adding a general sealed classes variant, as you…

--