• Stars
    star
    547
  • Rank 81,254 (Top 2 %)
  • Language
    Kotlin
  • License
    Apache License 2.0
  • Created over 6 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An assertion library for Kotlin

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

More Repositories

1

twitter-bootstrap-scaffolding

Twitter Bootstrap powered Grails scaffolding templates
Groovy
151
star
2

grails-angular-scaffolding

A Grails plugin for scaffolding views using Angular.js
JavaScript
87
star
3

gradle-compass

A SASS / Compass plugin for Gradle
Groovy
59
star
4

grails-gson

Provides alternate JSON (de)serialization for Grails using Google's Gson library
Groovy
45
star
5

hipsteroid

Demo application for "Grails for hipsters" talk at GGX 2012
JavaScript
44
star
6

idiomatic-spock

Presentation and sample code for "Idiomatic Spock"
JavaScript
32
star
7

spock-extensions

Groovy
19
star
8

grails-spring-events

Grails plugin for dispatching Spring events asynchronously
Groovy
17
star
9

spock-up-and-running

Example source code for my O'Reilly book Spock: Up and Running
Groovy
16
star
10

grails-scaffolding

Sample project for working on changes to Grails scaffolding
Groovy
16
star
11

geb-examples

Some Geb page object examples for blogging/presenting
Groovy
15
star
12

grails-enhanced-scaffolding

Enhanced scaffolding plugin for Grails 2+
Groovy
15
star
13

grails-jquery-mobile

Grails plugin integrating the jQuery mobile library into Grails scaffolding
JavaScript
13
star
14

vending-machine

Example for JUnit -> Spock live coding demo
Java
13
star
15

spock-katas

Workshop for Gr8Conf US 2015
Java
12
star
16

gradle-release-demo

Demo of how to automate build and release of a Gradle project with Nebula & CircleCI
Kotlin
8
star
17

test-clock

A mutable clock for use in tests
Java
6
star
18

gr8-examples

JavaScript
5
star
19

ggug-spock-examples

Some demo code for London GGUG presentation on Spock
Groovy
5
star
20

grails-reskin

Sandpit project for re-skinning Grails using HTML5 semantic markup & CSS3
JavaScript
5
star
21

jdbi-time

Provides support for Java 8's date & time API in JDBI
Java
5
star
22

grails-ember-scaffolding

A Grails plugin that allows you to use Ember.js based scaffolding
Groovy
5
star
23

gradle-vertx

A gradle task for controlling vert.x
Groovy
4
star
24

hipsterdevstack

JavaScript
4
star
25

grails-session-temp-files

A plugin for Grails that provides temporary file storage bound to the HTTP session, destroyed when the session expires.
Groovy
4
star
26

discordian-calendar

An implementation of the Discordian Calendar for the Java 8 time API.
Java
4
star
27

midcentury-ipsum

Swinginโ€™ filler text for your jet-age web page.
Kotlin
3
star
28

dungeon-world-sheets

JavaScript
3
star
29

adhockery-tumblr

Tumblr theme for Ad-Hockery
CoffeeScript
3
star
30

backchat

Hi-resilience Grails commenting app
Groovy
2
star
31

selenium-ide-grails-formats

Firefox plugin that adds Grails Selenium RC export formats to the Selenium IDE plugin
JavaScript
2
star
32

grails-ember

A Grails plugin that provides resources definitions for Ember.js
JavaScript
2
star
33

hybrid-views-with-grails

Slides and sample code for Hybrid Views With Grails presentation from gr8conf 2014
Groovy
2
star
34

grails-tellurium

Tellurium functional testing plugin for Grails
Groovy
2
star
35

rx-message-poll

Example of using RxJava to poll a remote service
Groovy
2
star
36

vertx-proxy

An experiment to see if I can use vert.x as the underlying proxy for Betamax
Shell
2
star
37

spock-jdbc

JDBC related extensions for Spock
Java
2
star
38

dukebox

Simple collaborative music player
JavaScript
1
star
39

votething

A simple Grails app for creating and using votes and polls
Groovy
1
star
40

colorspace

A tool for experimenting with LESS color transformation functions
JavaScript
1
star
41

placepic

Simple image resizer / cropper written using Gaelyk
JavaScript
1
star
42

proxyless-betamax-spike

Java
1
star
43

security-and-joda

dumb project with joda-time, spring-security-core and cloud-foundry
Groovy
1
star
44

fongo-persistor

A Vert.x busmod for mocking out the mongo-persistor using fongo
JavaScript
1
star
45

gradle-watch-demo

Shell
1
star
46

Meta-Ipsum

1
star
47

wvdv

JavaScript
1
star
48

grails-spock-webdriver

A Grails plugin to enable Spock driven WebDriver tests with a page object DSL inspired by geb-spock
Groovy
1
star
49

spock4k

Experimenting with Spock-like opinionated testing constructs for Kotlin
Kotlin
1
star
50

prism-groovy

Groovy syntax highlighting for Prism.js
JavaScript
1
star