hamkrest
kotlin-power-assert
hamkrest | kotlin-power-assert | |
---|---|---|
2 | 2 | |
341 | 553 | |
- | - | |
0.0 | 3.9 | |
over 3 years ago | about 1 month ago | |
Kotlin | Kotlin | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
hamkrest
-
Kotlin assertion libraries - JUnit, Hamkrest and Strikt
In this episode we first look at improving our use of JUnit, using kotlin.test to improve type safety, and assertAll to make multiple checks on the same subject. Then we look at Hamkrest (https://github.com/npryce/hamkrest), a Kotlin reimplementation of the classic Hamcrest, before settingly on Strikt (https://strikt.io/) for our fluent assertions.
-
Which assertion library do you use?
Then you should give Hamkrest a try
kotlin-power-assert
-
Kotlin assertion libraries - JUnit, Hamkrest and Strikt
I’m getting recommendations a compiler plug-in that also looks very interesting https://github.com/bnorm/kotlin-power-assert
-
Kotlin Team AMA #3: Ask Us Anything
Other examples are atomicfu and power assert (developed and maintained externally!), and we expect this list to grow even further.
What are some alternatives?
Kotest - Powerful, elegant and flexible test framework for Kotlin with additional assertions, property testing and data driven testing
KEEP - Kotlin Evolution and Enhancement Process
Kluent - Fluent Assertion-Library for Kotlin
kotlin-multiplatform-libsodium - A kotlin multiplatform wrapper for libsodium, using directly built libsodium for jvm and native, and libsodium.js for js targets.
aspen - Aspen is a simple test runner for Kotlin that allows you to write tests using your own DSL.
rsocket - RSocket Protocol Definition
mockito-kotlin - Using Mockito with Kotlin
ktor - Framework for quickly creating connected applications in Kotlin with minimal effort
mockk - mocking library for Kotlin
kotlin-wrappers - Kotlin wrappers for popular JavaScript libraries
expekt - BDD assertion library for Kotlin
kotlinx.serialization - Kotlin multiplatform / multi-format serialization