项目作者: robfletcher

项目描述 :
An assertion library for Kotlin
高级语言: Kotlin
项目地址: git://github.com/robfletcher/strikt.git
创建时间: 2018-04-29T07:40:27Z
项目社区:https://github.com/robfletcher/strikt

开源协议:Apache License 2.0

下载


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.

  1. repositories {
  2. mavenCentral()
  3. }
  4. dependencies {
  5. testImplementation("io.strikt:strikt-core:<version>")
  6. }

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-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:

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

Bill of Materials

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

  1. dependencies {
  2. // BOM dependency
  3. testImplementation(platform("io.strikt:strikt-bom:<version>"))
  4. // Versions can be omitted as they are supplied by the BOM
  5. testImplementation("io.strikt:strikt-jackson")
  6. testImplementation("io.strikt:strikt-jvm")
  7. testImplementation("io.strikt:strikt-spring")
  8. }

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