Skip to content

Instantly share code, notes, and snippets.

View nagkumar's full-sized avatar
💭
Code Doctor to Fix #techdebt

Raja Nagendra Kumar nagkumar

💭
Code Doctor to Fix #techdebt
View GitHub Profile
Library Language Assertion Style Integration with Testing Frameworks IDE Integration Pros Cons
AssertJ Java Fluent checked checked Supports a wide range of assertions, easy to read and write Limited support for custom assertions
Hamcrest Java Matcher-based checked Provides a wide range of matchers, easy to read and write Can be verbose for some use cases
JUnit 5 Assertions Java Multiple styles (assertXXX(), fail()) checked checked Built-in to JUnit 5, easy to use, supports a wide range of assertions Limited to use with JUnit 5
Truth Java Fluent checked Easy to read and write, supports a wide range of assertions, good IDE integration Limited support for custom assertions
KotlinTest Kotlin Multiple styles (shouldXXX(), expectXXX()) checked checked Provides a wide range of assertions, easy to use, supports custom assertions Can be complex for some use cases
Scalatest Scala Multiple styles (assert(), expect(), should()) checked checked Good integration with testing frameworks, flexible Can be
{
"allAbis": [
"armeabi-v7a",
"arm64-v8a"
],
"validAbis": [
"ARMEABI_V7A"
]
}