All Projects → robfletcher → Strikt

robfletcher / Strikt

Licence: apache-2.0
An assertion library for Kotlin

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Strikt

Assert
A collection of convenient assertions for Swift testing
Stars: ✭ 69 (-77.74%)
Mutual labels:  test, assertions, assert
Should Enzyme
Useful functions for testing React Components with Enzyme.
Stars: ✭ 41 (-86.77%)
Mutual labels:  test, assertions
Check Types.js
MOVED TO GITLAB
Stars: ✭ 232 (-25.16%)
Mutual labels:  assertions, assert
Testify
A unit testing framework written in bash for bash scripts
Stars: ✭ 45 (-85.48%)
Mutual labels:  test, assert
Atrium
A multiplatform assertion library for Kotlin
Stars: ✭ 359 (+15.81%)
Mutual labels:  assertions, assert
Gotest.tools
A collection of packages to augment the go testing package and support common patterns.
Stars: ✭ 205 (-33.87%)
Mutual labels:  assertions, assert
Expect More
Curried Type Testing library, and Test Matchers for Jest
Stars: ✭ 124 (-60%)
Mutual labels:  assertions, assert
Assertion
The power of Respect\Validation into an assertion library.
Stars: ✭ 23 (-92.58%)
Mutual labels:  assertions, assert
assert
Go 语言 assert 断言函数
Stars: ✭ 17 (-94.52%)
Mutual labels:  test, assert
Expekt
BDD assertion library for Kotlin
Stars: ✭ 163 (-47.42%)
Mutual labels:  test, assertions
Kotest
Powerful, elegant and flexible test framework for Kotlin with additional assertions, property testing and data driven testing
Stars: ✭ 3,234 (+943.23%)
Mutual labels:  test, assertions
got
An enjoyable golang test framework.
Stars: ✭ 234 (-24.52%)
Mutual labels:  test, assert
Enzyme
JavaScript Testing utilities for React
Stars: ✭ 19,781 (+6280.97%)
Mutual labels:  test, assertions
Should.js
BDD style assertions for node.js -- test framework agnostic
Stars: ✭ 1,908 (+515.48%)
Mutual labels:  test, assertions
rust-claim
Assertion macros toolkit for Rust
Stars: ✭ 53 (-82.9%)
Mutual labels:  assertions, assert
cxx-tap
Test Anything Protocol (TAP) Producer for C++
Stars: ✭ 22 (-92.9%)
Mutual labels:  test, assertions
Stubb
Specify REST API stubs using your file system.
Stars: ✭ 289 (-6.77%)
Mutual labels:  test
Ember Test Selectors
Enabling better element selectors in Ember.js tests
Stars: ✭ 258 (-16.77%)
Mutual labels:  test
Commonjs Assert
Node.js's require('assert') for all engines
Stars: ✭ 255 (-17.74%)
Mutual labels:  assert
Muter
🔎 Automated mutation testing for Swift 🕳️
Stars: ✭ 293 (-5.48%)
Mutual labels:  test

Strikt

Strikt is an assertion library for Kotlin intended for use with a test runner such as JUnit, Minutest, Spek, or KotlinTest.

Strikt uses a fluent assertion style similar to AssertJ but leverages Kotlin's type system and extension functions rather than needing a complex hierarchy of assertion builder classes.

Strikt is under development, but 100% usable. The API may change until a version 1.0 is released. Any suggestions, issue reports, contributions, or feedback are very welcome.

Installation

Strikt is available from Maven Central.

repositories {
  mavenCentral()
}

dependencies {
  testImplementation("io.strikt:strikt-core:<version>")
}

See the button below or releases/latest for the current version number.

Additional Libraries

Strikt has the following additional libraries:

  • strikt-arrow -- supports data types from the Arrow functional programming library.
  • strikt-gradle -- supports the Gradle build tool.
  • strikt-jackson -- supports the Jackson JSON library.
  • strikt-jvm -- supports types from the Java SDK.
  • strikt-mockk -- supports types from the MockK library.
  • strikt-protobuf -- supports Protobuf / gRPC.
  • strikt-spring -- supports the Spring Framework.

Versions are synchronized with the core Strikt library.

To install additional libraries include dependencies in your Gradle build. For example:

dependencies {
  testImplementation("io.strikt:strikt-jvm:<version>")
}

Bill of Materials

Strikt supplies a BOM that is useful for aligning versions when using more than one Strikt module.

dependencies {
  // BOM dependency
  testImplementation(platform("io.strikt:strikt-bom:<version>"))

  // Versions can be omitted as they are supplied by the BOM
  testImplementation("io.strikt:strikt-jackson")
  testImplementation("io.strikt:strikt-jvm")
  testImplementation("io.strikt:strikt-spring")
}

Using Strikt

Please see the project documentation and API docs.

Community

Join the #strikt channel on the Kotlin Slack.

Follow @stri_kt on Twitter for updates and release notifications.

Maven Central GitHub Release Date license GitHub issues GitHub Workflow Status (branch) GitHub top language Twitter Follow

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].