Advanced JUnit Testing: Enabling Conditional Tests with Tags and Java System Properties

Опубликовано: 27 Май 2026
на канале: Otavio Santana
451
13

This video explores advanced techniques with JUnit conditional for enabling and disabling JUnit tests based on specific conditions. We cover using tags to group and selectively run tests and leverage Java system properties to dynamically enable or disable tests at runtime. Additionally, we demonstrate how to use JUnit's built-in @EnabledIf and @DisabledIf annotations to conditionally run tests based on the results of custom Java expressions. If you want to take your JUnit testing skills to the next level, this video is for you!

00:00 Introduction
02:11 Tag annotation
05:10 System Property
07:01 Exploring the documentation

https://junit.org/junit5/docs/current...
https://github.com/ultimate-engineer/...

Social Media:
Web: https://otaviojava.com/
Twitter:   / otaviojava  
Linkedin:   / otaviojava  
Github: https://github.com/otaviojava