jpoint JPoint 2020 (29.06.2020 — 03.07.2020)

assert! thou comprehensive word…​

img

In this talk we will look at how modern tools (JUnit 4/5, Spok, Power Assert, Truth) allow you to write tests so that their crash is easier to analyze and the tests themselves are easier to maintain.

<p>A lot of us heard about arrange-act-assert. And about single assert too. The letter "M" means the ease of maintenance, and the letter "U" means ease of understanding the results.</p> <p>The test can fall for different reasons (CI has a different environment, more tests are running, more workload, etc.) but the question "why did it fall" still holds.</p> <p>In this talk, we will look at how modern tools (JUnit 4/5, Spok, Power Assert, Truth) allow you to write tests so that their crash is easier to analyze and the tests themselves are easier to maintain.</p>