Spock vs JUnit 5 - Clash of the Titans

Spock vs JUnit 5 - Clash of the Titans

Spock was a game changer for all the people struggling with unit testing in JUnit 4. Compact syntax, parameterized tests or flexibility to mention just a few advantages. Over 10 years after JUnit 4.0, the brand new, written from scratch, Java 8 optimized JUnit 5 has been released. Is it still worth to write tests in Spock?

During my presentation I will compare selected areas of Spock and JUnit 5 to give you an overview how the situation looks like in 2019. I will try to answer the question if its time for Spock to fade into oblivion or maybe quite the opposite it is still light years ahead of JUnit 5.


Marcin Zajączkowski

March 29, 2019