Do you use Spock or JUnit?

This page summarizes the projects mentioned and recommended in the original post on /r/java

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • spockito

    Java JUnit runner for parameterized tests where the test cases are defined in a table-like manner.

  • I remember Spock being easy enough. My favorite feature was unroll :). I found a plugin a while back to fill that void in junit. https://github.com/tools4j/spockito

  • Kotest

    Powerful, elegant and flexible test framework for Kotlin with additional assertions, property testing and data driven testing

  • One big downside in my opinion is that it is based on Groovy language. Personally I don't like that language and don't have high expectations about its future. If I needed something more expressive than JUnit, I'd prefer the Kotlin based Kotest.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts