Appwrite is an open source backend server that helps you build native iOS applications much faster with realtime APIs for authentication, databases, files storage, cloud functions and much more! Learn more →
Top 7 Kotlin Assertion Projects
-
Kotest
Powerful, elegant and flexible test framework for Kotlin with additional assertions, property testing and data driven testing
Project mention: Best practices for Unit Testing Android Apps with Mockk, Kotest and others | dev.to | 2023-05-10As a matter of fact, in the previous examples, we have shifted a bit away from the TDD standards in the meaning that we test not only the operability of our code, but rather check if the code runs according to certain specifications (Given/When/Then). These specifications are our tests, and the syntactic sugar in the form of the possibility to give clear names to the tests using DisplayName and the grouping of the tests by a set of similar attributes helps us clearly formulate these specifications. There is an entire family of frameworks in different languages that allow us to create such specifications: for Java it is Spock, for Ruby—RSpec, and for Kotlin—Spek and Kotest frameworks. Below, I will go into more detail about them.
-
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.
-
Appwrite
Appwrite - The Open Source Firebase alternative introduces iOS support. Appwrite is an open source backend server that helps you build native iOS applications much faster with realtime APIs for authentication, databases, files storage, cloud functions and much more!
-
kotlin-power-assert
Kotlin compiler plugin to enable diagrammed function calls in the Kotlin programming language
I’m getting recommendations a compiler plug-in that also looks very interesting https://github.com/bnorm/kotlin-power-assert
-
-
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.
-
-
-
InfluxDB
Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.
Kotlin Assertions related posts
- Why do Kotlin tests (for Gradle projects) have to be inside classes?
- Kotlin Mutation Tests
- Kotlin assertion libraries - JUnit, Hamkrest and Strikt
- How to improve third-party libraries with Kotlin extensions
- Testing with fakes different states?
- Which assertion library do you use?
- Kotlin&Junit vs Groovy&Spock
-
A note from our sponsor - Appwrite
appwrite.io | 8 Jun 2023
Index
What are some of the best open-source Assertion projects in Kotlin? This list will help you:
Project | Stars | |
---|---|---|
1 | Kotest | 3,949 |
2 | strikt | 493 |
3 | kotlin-power-assert | 485 |
4 | atrium | 466 |
5 | hamkrest | 340 |
6 | expekt | 172 |
7 | kiwi | 17 |