A More Practical Guide to JUnit 5 Parameterized Tests

JUnit 5 parameterized tests make it possible to run the same test multiple times with different arguments. This way, you can quickly verify various conditions without writing a test for each case. 00:00 Introduction 00:35 Single argument 02:58 Multiple arguments 04:40 Sharing arguments between tests 06:27 Comma-separated values 08:46 Type conversion 10:26 Custom converters 14:34 Custom display names 15:26 Outro Check the related blog post: Example source code: List of built-in JUnit 5 type converters: #writing-tests-parameterized-tests-argument-conversion #Programming #JUnit5
Back to Top